Not sure why that's not working. Regarding IS_LOWER not working for login, 
I think the problem might be that the login() function temporarily replaces 
the username field's 'requires' with just an IS_EMAIL validator.

Anthony

On Friday, December 9, 2011 1:23:22 AM UTC-5, Constantine Vasil wrote:
>
> OK - this is working
>
>     auth.settings.login_onvalidation = login_email_lower    
>     current.app.auth =  auth    
>     form=current.app.auth.login(next=login_next)
>
> it works also for registration:
>
>     auth.settings.register_onvalidation = login_email_lower     
>     current.app.auth =  auth         
>     form=current.app.auth.register()
>
> def login_email_lower(form): 
>     form.vars.email = form.vars.email.lower() 
>     return(form) 
>
> I registered with lower caps email.
>
> But when I try to enter mixed caps email in request_reset_password, it 
> does not works and it does not shows an error message:
>
>     auth.settings.reset_password_onvalidation = login_email_lower     
>     current.app.auth =  auth    
>     form=current.app.auth.request_reset_password()
>
> What is the correct way to use it?
>

Reply via email to