-
CI4 Shield has magic link for forgotten password, but this logs you in, instead of prompting for a password reset. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hi, Please see #359. |
Beta Was this translation helpful? Give feedback.
-
The original thought was that they could then use whatever account management features your app has to update their password. To be fair, it sounds like that flow was not thought out as fully as it could have been. Sorry about that. I don't think we need to go so far as allowing actions specific to Magic Link. I think that will just get too complex. Instead, setting a session temp variable stating that we just logged in with a Magic Link would be enough. That would provide developers a way of checking for that situation and responding however they'd like, whether that's to redirect to a change password form, or just display a note suggesting they change their password. |
Beta Was this translation helpful? Give feedback.
-
Solved it the following way: |
Beta Was this translation helpful? Give feedback.
Solved it the following way:
Implemented forgot password to send out a magic link email
When using the link to log in (the verify method), I redirect the user to the reset-password page
The reset-password page only works if session('magicLogin') is set, and this page allows to change the password without specifying the old password