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 <denes1...@yahoo.ca> 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---