Massimo,
> auth.settings.login_url=URL(r=request, c='crudtool', f='index')
>
> after logout it goes to login_url, same with failed requires_login.
The cause of the problem laid elsewhere:
Since I customized the registration process I did not define:
def user(): return dict(form=auth())
instead I defined:
def index():
redirect(URL(r=request,f='login'))
return dict()
def login():
return dict(form=auth.login())
def logout():
return dict()
def profile():
return dict(form=auth.profile())
def change_password():
return dict(form=auth.change_password())
def retrieve_username():
return dict(form=auth.retrieve_username())
def retrieve_password():
return dict(form=auth.retrieve_password())
I noticed that in all but the logout function, a function is called on
the auth object. So, I changed the logout function to read like:
def logout():
auth.logout()
return dict()
and now logout is working.
Kind regards,
Annet.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---