[web2py] Re: auth(), check if name and password from login is in the database

2013-06-26 Thread royski
thx for the quick answer Anthony, you save my day -- --- 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,

[web2py] Re: auth(), check if name and password from login is in the database

2013-06-26 Thread Anthony
> > def index(): > user_auth = auth.login() > user_auth.add_button('register me', URL('register_user')) > Right after the above, just do: if auth.user: session.user_name = auth.user.username auth.login() not only creates the login form, but it also processes it and th