It should be something like:
@auth.requires_login()
def index():
redirect(URL('entities', 'list',user_signature=True))
@auth.requires_signature()
def list():
....
If you are logged into index, then index can generate links which are
signed. If you are not logged in, than it does not work.
On Wednesday, 28 December 2016 04:28:15 UTC-6, Ramos wrote:
>
> def index():
> redirect(URL('entities', 'list',user_signature=True))
>
>
> This redirect does not redirect with signature to entities\list and i get
> redirected to default/user/not_authorized
>
> entities.py
> @auth.requires_signature()
> @auth.requires_login()
> def list():
> ...
>
>
>
> any ideas ?
>
> thank you
>
>
>
--
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.