jeudi 6 juillet 2017

ember-simple-auth, authenticate when already authenticated

On my ember app, I use ember-simple-auth for the authentication. When a user forget his password, the application send an email with a link to the "password-reset" route to let them change their password.

After changing it, they are authenticated automatically and redirected to "/" . So I defined that as a authenticator (and it works).

But now I'd like to allow users to change their password in the same way so they could be already authenticated. But users are not redirected if a session already exist. I'd like to know how to do that as cleanly as possible.

I didn't check the source code but maybe nothing is done if a session already exist.

Thanks a lot




Aucun commentaire:

Enregistrer un commentaire