You can use these tokens for your purpose. You would also have to do (in 
models/db.py)

   auth.requires_login = auth.requires_login_or_token

In the general case the user many want to allow the token only on some API 
so we want to distinguish.

Massimo

On Monday, 29 June 2015 09:25:35 UTC-5, [email protected] wrote:
>
> Hello:
>
> I'm actually interested in a way to send user notification emails with 
> custom links, so that a click sends the user to the website and also logs 
> the user in automatically.
>
> Is that what these tokens are for? If they are, I don't see why I would 
> use the decorator requires_login some times, and requires_login_or_token 
> other times.
>
> But I'm afraid this is not their goal, is it?
>

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