On Sunday, February 16, 2014 11:07:21 AM UTC-5, André Kablu wrote: > > Or you could automatically check for auth.user_id right after the > validation. >
The problem is the auth.login() function does a redirect after failed login, so there's no opportunity to do anything after the auth.login() function completes. You would have to use the auth.settings.login_onfail callback. Also, note that checking for auth.user_id after the redirect doesn't help because at that point, there is no way to distinguish between a failed login and a normal arrival at the login page. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

