Hello Pierre,
What are your trying to do exactly which doesn't work as expect??
The config you show us about login_next is not different from the default
behavior of web2py so, I don't understand what you expect other than that...
About registration_requires_verification and registration_requires_approval,
are your users still need to pass trough these step?? I guess no...
I am not sure regarding the talking in the book about the
referrer_actions=None...
I do understand it required in case of using these parameters :
auth.settings.login_next = URL('index')auth.settings.logout_next =
URL('index')auth.settings.profile_next =
URL('index')auth.settings.register_next = URL('user',
args='login')auth.settings.retrieve_username_next =
URL('index')auth.settings.retrieve_password_next =
URL('index')auth.settings.change_password_next =
URL('index')auth.settings.request_reset_password_next = URL('user',
args='login')auth.settings.reset_password_next = URL('user',
args='login')auth.settings.verify_email_next = URL('user',
args='login')
I am confuse by these explanation... I don't seems to be able to control
login_next, neither if I set referrer_actions=None or not though. But I
have a custom login layout.html so it may be come from there...
Please make you intention clearer, what the expected behavior you can't
achieve to do. And maybe if you have more than one layout in your app, try
investigate there.
Richard
On Mon, Jun 5, 2017 at 2:08 PM, Pierre <[email protected]> wrote:
> Hi
>
> I am trying to redirect user after successful login. I do nothing but what
> the book says but i am unable to change default behaviour
> here is the code :
>
> in db.py :
>
> auth.settings.registration_requires_verification = False
> auth.settings.registration_requires_approval = False
> auth.settings.reset_password_requires_verification = True
> auth.settings.login_next = URL('default','index')
>
>
>
> in layout.html :
> {{='auth' in globals() and auth.navbar(mode='dropdown', referrer_actions=
> None)}}
>
>
> book url :
> http://web2py.com/books/default/chapter/29/09/access-control
> #Auth-Settings-and-messages
>
> trying hard to stay calm.....GRMBBBLEU GRRBBBMLEUMBLEU
>
> --
> 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.
>
--
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.