Hello, I'm trying to add remember_me option to my auth login form and so
far it looks like this:
controller.py
def index():
auth.settings.remember_me_form=True
auth.settings.long_expiration = 3600*24*30
form = auth()
return dict(form=form)
view.html
{{=form.custom.begin}}
{{=form.custom.widget.email}}
{{=form.custom.widget.password}}
{{=form.custom.widget.remember_me}}
{{=form.custom.widget.submit}}
{{=form.custom.end}}
It doesn't display the remember_me option nor remembers anything, anyone
knows where the problem is?
--
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/d/optout.