On Wednesday, April 3, 2013 10:46:45 AM UTC-4, Sebastian Cambeo wrote: > Apparently it is not possible at the moment to customize the > request_reset_password URL and the reset_password URL. > > There is no such option in auth.settings. >
You can customize the request_reset_password URL, though auth.navbar() won't pick up the change (though there are ways to hack it, depending on your desired URL structure). > Furthermore I didn't find a way to change the reset_password Mail message > such that it links to a custom URL > The reset password URL can be whatever you want, though it must include the reset key at the end. Both the key and the link are passed to the auth.messages.reset_password string, so you if you don't want to use the default link that is generated, you can instead create a custom message that incorporates the key that is passed to it. For example: 'Click on the link %s/%%(key)s to reset your password' % URL( 'auth_controller', 'reset_function', scheme=True) which will generate a message like this: 'Click on the link http://www.domain.com/app/auth_controller/reset_function/%(key)s to reset your password' The value of "key" will then be filled in automatically. I also noticed that the request_reset_password form always redirects to the > user/login url despite the fact that I already specified another url... > Are you saying you set auth.settings.request_reset_password_next? That is only used if there is no _next variable in the URL already. If you are using the navbar, it adds the _next variable to all links by default (so you always get redirected back to where you were), but you can change this by specifying the "referrer_actions" argument and excluding this action from the list. Anthony -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

