For now, maybe something like:

In a model file:

def login_onfail():
    session.login_email = request.post_vars.email

auth.settings.login_onfail.append(login_onfail)

In default.py controller:

def user():
    if request.args(0) == 'login' and session.login_email:
        db.auth_user.email.default = session.login_email
        del session.login_email
    return dict(form=auth())

Anthony

On Saturday, October 11, 2014 3:58:05 AM UTC-4, Leonel Câmara wrote:
>
> Hey, right now, this is problematic. See this thread:
>
> https://groups.google.com/forum/#!topic/web2py/gXBfCGki9ns
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to