Hi there,
When a signed url has a list of int values it is not working well and I get
"Not Authorized"
Here is an example, link1 does not work, link2 works.
@auth.requires_login()
def index():
link1 = A(
'link1 Not Authorized :-(',
_href=URL(f='hello1', vars=dict(ids=[8, 28]), user_signature=True)
)
link2 = A(
'link2',
_href=URL(f='hello2', vars=dict(ids=[28]), user_signature=True)
)
return locals()
@auth.requires_signature()
def hello1():
return dict(hello='Hello 1')
@auth.requires_signature()
def hello2():
return dict(hello='Hello 2')
Has anyone had this problem?
I am using the latest version of web2py (Version
2.21.1-stable+timestamp.2020.11.27.18.21.43)
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/4a817a53-4071-47fd-b909-9a9084264984n%40googlegroups.com.