Hi,
I am trying to control when and show login form on a page. I have a
login form that is displayed on the side of the page is user is not
logged in and if the user actually goes the the login page (not the
login form by the side of the page). It causes problem because there
will be login form in the page and as a result of that the login does
not work. I tried to add an "if" to hide the side login form if the
user is in the actual login page like this:
{{if request.function is not 'user' and request.args and
request.args[0] is not 'login':}}
{{include 'mini_login.html'}}
{{pass}}
Its seems to work fine but if I actually go the the login page, the
page layout is screwed up. Help please
Thanks in advance
Winston
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---