alepez / devand

DevAndDev helps developers finding pair-programming partners.
Apache License 2.0
40 stars 9 forks source link

Login with email address not working #130

Open lightyear15 opened 3 years ago

lightyear15 commented 3 years ago

Can't login with newly created password after password reset.

After having reset the password following the Forgot password procedure, I can't sign in using the new password.

To login I am using my e-mail not my username.

alepez commented 3 years ago

Hi @lightyear15, thank you for your contribution. I've just tested to reset my password and it's working. But I cannot login with my email address, only with username. I think it's not an issue with password recovery, but only with login by email address.

alepez commented 3 years ago

Can you try to login with your username instead of email address?

I've just checked the login code (https://github.com/alepez/devand/blob/master/devand-db/src/auth.rs#L71) and it doesn't match by email address, only by username, so this explain why you cannot login with your email address.

lightyear15 commented 3 years ago

Can you try to login with your username instead of email address?

I've just checked the login code (https://github.com/alepez/devand/blob/master/devand-db/src/auth.rs#L71) and it doesn't match by email address, only by username, so this explain why you cannot login with your email address.

I will try dig into my memory to remember my login :sweat_smile:

alepez commented 3 years ago

I guess it's lightyea15

Please, do not close this issue. I've renamed it to Login with email address not working (and this is an actual problem).

lightyear15 commented 3 years ago

:+1: thanks a lot for your help