On 17/11/20 22:24, Kenneth wrote:
Hi,

I tried searching the discussions but could not find anything like this being discussed.

I'm looking into having users login into my app via an link/URL they receive via email. They just get an link no separate username and password. When the link is accessed they are logged in normally. The link would look like something like this: my.website.com/longhash4324kljhasdfasd9f87ads

Does web2py already contain this function?


Kenneth

--
Resources:
- http://web2py.com <http://web2py.com>
- http://web2py.com/book <http://web2py.com/book> (Documentation)
- http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
code)
- https://code.google.com/p/web2py/issues/list <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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/e8102d90-88c8-4a4c-abcb-96ba7aa54cddn%40googlegroups.com <https://groups.google.com/d/msgid/web2py/e8102d90-88c8-4a4c-abcb-96ba7aa54cddn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Hi,

I would write the hash somewhere in the filesystem, create a controller to verify the hash, then use Auth.login_user() to authenticate the user.

Having said that, please note that it is a (very) bad idea, since a "man in the middle" could easily intercept the mail and hack the session.

Regards,

Carlos Correia
=========================
MEMÓRIA PERSISTENTE
GSM:  917 157 146 (Signal, WhatsApp)
e-mail: [email protected]
URL: http://www.memoriapersistente.pt
XMPP (Jabber): [email protected]

--
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/00b9aa90-1458-f9c5-ae9b-703e740341d7%40memoriapersistente.pt.

Reply via email to