Skip to content

Commit

Permalink
Update lib/galaxy/managers/users.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van den Beek <[email protected]>
  • Loading branch information
ahmedhamidawan and mvdbeek authored Jul 5, 2024
1 parent 077832b commit 839fd0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/managers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ def send_reset_email(self, trans, payload, **kwd):
except Exception as e:
log.debug(body)
return f"Failed to submit email. Please contact the administrator: {util.unicodify(e)}"
if not reset_user:
log.warning(f"Failed to produce password reset token. User with email '{email}' not found.")
return None

def get_reset_token(self, trans, email):
Expand Down

0 comments on commit 839fd0c

Please sign in to comment.