KristerV / heliumpay-budgetweb-backend

2 stars 2 forks source link

Send password email endpoint should accept username #14

Open jschr opened 7 years ago

jschr commented 7 years ago

POST /login/sendPasswordResetEmail works off an email address but it should allow username to be provided as well. If a username is provided, the email is looked up from the users table. An error should be thrown if there is no email for the provided username.

KristerV commented 7 years ago

I'd label this "nice to have"

jschr commented 7 years ago

This would be quick but can leave it for later. The forgot password workflow would be nicer because we can re-use the provided username from login.