Hello,

I have a controller called 'painel.py' and the following config in my 
*db.py* file:
## configure auth policy
auth.settings.mailer=mail
auth.settings.controller = 'painel'
auth.settings.actions_disabled.append('register')
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False
auth.settings.allow_basic_login = False
auth.settings.reset_password_requires_verification = True
auth.settings.login_url = URL('painel', 'index')
auth.settings.login_next = URL('painel', 'dashboard')
auth.settings.logged_url = URL('painel', 'dashboard')
auth.settings.request_reset_password_next = URL('painel', 'index')
auth.settings.reset_password_next = URL('painel', 'index')
auth.settings.logout_next=URL('painel', 'index')
auth.settings.profile_next = URL('painel', 'dashboard')
auth.settings.retrieve_username_next = URL('painel', 'dashboard')
auth.settings.retrieve_password_next = URL('painel', 'dashboard')
auth.settings.change_password_next = URL('painel', 'dashboard')
auth.settings.on_failed_authentication = URL('painel', 'index')

I defined *painel.py* as auth controller so the login url when it is an 
invalid login won't be crashing, but the user function is still on the 
*default.py* controller. But now when I access the 'request_reset_password' 
page and try to enter my username and submit the form, it works normally on 
localhost but not on server (Apache on Ubuntu). The routes when submiting 
the form are '/user/request_reset_password' on localhost, but '/myapp/
*painel*/user/request_reset_password' (wrong controller) on server. Is 
there a better way to fix this?

*routes.py*



*BASE = ''routes_in = (    (BASE + '/', BASE + '/myapp/painel/index'),    
(BASE + '/user/$anything', BASE + '/myapp/default/user/$anything'),    
(BASE + '/download/$anything', BASE + 
'/myapp/default/download/$anything'),    (BASE + '/call/$anything', BASE + 
'/myapp/default/call$anything'),    (BASE + '/data/$anything', BASE + 
'/myapp/default/data/$anything'),    (BASE + '/myapp/static/$anything', 
BASE + '/myapp/static/$anything'),    (BASE + '/myapp/appadmin', BASE + 
'/myapp/appadmin'),    (BASE + '/myapp/appadmin/$anything', BASE + 
'/myapp/appadmin/$anything'),    (BASE + '/index', BASE + 
'/myapp/painel/index'),    (BASE + '/start', BASE + 
'/myapp/painel/start'),    (BASE + '/dashboard', BASE + 
'/myapp/painel/dashboard'),    (BASE + '/monitor', BASE + 
'/myapp/painel/monitor'),    (BASE + '/accept/$anything', BASE + 
'/myapp/painel/accept/$anything'),    (BASE + '/invite', BASE + 
'/myapp/painel/invite'),    (BASE + '/invite/$anything', BASE + 
'/myapp/painel/invite/$anything'),    (BASE + '/delete/$anything', BASE + 
'/myapp/painel/delete/$anything'),    (BASE + '/$anything', BASE + 
'/myapp/painel/board/$anything'),    )routes_out = [(x, y) for (y, x) in 
routes_in]*

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to