hello i have a controller function that is called as a get/post request
this functions then needs to log as a specific user before manipulating
data from tables.
4 is my user id
def checkLoad():
user=auth.impersonate(4)
return "ok"
When i call it with postman or something to test my endpoint i get
Not Authorized
Any ideas why ?
Regards
António
--
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/CAEM0BxPz_VJ8qUOpVitL%3DFmos0rGyMJo2s6ZVoAHOL8KeeagWw%40mail.gmail.com.