Hi all

I would like to include a username+pw field and login button on all
pages if the user is not already logged in. I would like to use the
built-in functions of web2py to validate the login.

What would be the best approach for this? I tried to create the fields
(as default/user/login would produce) in template.html and set the
form post action to default/user/login. This did no work. I guess
there are some hidden fields which are not matched correctly in the
user/login action which does not compute, and the user/login is
displayed as if the user/login action was called for the first time.

Thanks!

-sveinh

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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.

Reply via email to