You should be able to check request.vars.email or request.vars.username to 
see the email or username that was submitted in the login form.

Anthony

On Thursday, February 13, 2014 5:28:58 PM UTC-5, User wrote:
>
> I want to record the number of failed login attempts for each user in 
> db.auth_user.  I've added an extra field:
>
> auth.settings.extra_fields['auth_user'] = [
>     Field('failed_login_attempts','integer', default=0),
>
>
>
> My thought was to increment this number in login_onfail.  However, how can 
> I find out which user failed the login from this function handler?  As far 
> as I can see it doesn't take the login form as an argument like onaccept.  
> Or if that is not possible where in the chain of events can I increment 
> this count on a failed login?
>

-- 
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.

Reply via email to