Reload login page needed after first attemp fails.

12 views
Skip to first unread message

David Fuertes

unread,
Apr 21, 2020, 1:28:19 AM4/21/20
to web2py-users
Hello,

I'm a default controller doing a redirection to another controller.

[default]
@auth.requires_login()
def index():
     redirect(URL('another_controler', my_funtion)

I have a custom login method: pop3 authentication server wich return true or false if login password match with email password.

All works ok,  but  when first  login fails (wrong email  or password, don't matter), the exposed default/user/login processs don't work properly.

The url of my browser is not clean, there in GET format all the parameters of the previous login form. Also the _formkey of form and session don't match.

If I reload the page the URL in the browser is clean, the session is clean and all work fine.

The login form is the default auth() form .

I'm using web2py 2.18.4-stable.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages