def index():
form=SQLFORM(db.auth_table, fields=['email','password']
if FORM.accepts(request.vars,session):
user=session.user=auth.get_or_create_user(form.vars)
redirect(....)
return dict(form=form)
On Jul 3, 12:56 pm, DenesL <[email protected]> wrote:
> I want to be able to login OR register with the form shown by
> @auth.requires_login.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---