Forgot username, forgot password functionality
Hi!
I am looking for examples of implementations of a more robust forgot username and forgot password implementation. Does anyone have one to share, even just a link to the page so I can see how it works, or screenshots? We would like to implement a secure system for requesting username and resetting password.
Product version: HealthShare 2019.1
The SSO system we use for this Developer Community has a "forgot password" implementation. Unfortunately it is down right now, but under normal circumstances you would be able to try it out here: https://login.intersystems.com/login/SSO.UI.PasswordReset.cls
It works as follows:
It's important to avoid user enumeration by not revealing in the UI whether or not a user with the provided username or email address exists in the system. You should also hash the password reset tokens before storing them in a database, give them a short lifetime before they expire, and invalidate the token after it's used once.
I highly recommend OWASP for more resources on how to do this securely: https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_She...
Thank you! Have you thought about forgot username? Our system doesnt use email for user name, we use a value based on a combination of facility and user's name and when folks dont log on everyday they can forget it.