On Thursday, June 29, 2017 at 6:05:02 PM UTC-4, Filipe Reis wrote:
>
> Ohh nice thinking, I forgot that I could do such thing :) 
>
> Anyways I asked this in other thread but do you know something about this?
>
> How to use signature with web2py_component? (I changed web2py_ajax_page to 
> web2py_component since I saw that this calls the ajax_page)
>
> So when a request is done to the page it only shows if was triggered the 
> that call only. This is what I think that @auth.requires_signature() does
>

You can generate a URL with a user signature (requires login) as follows:

$.web2py.component('{{=URL(..., user_signature=True)}}', ...);

And then decorate the action with @auth.requires_signature().

Anthony
 

-- 
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