mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
When staff visits the user profile of another user, the `email` field in the model is empty. In this case, staff cannot send the reset email password because nothing is passed in the `login` field. This commit changes the behavior for staff users to allow resetting password by username instead.