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.defa
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 Issue
2 matches
Mail list logo