Skip to content

Commit

Permalink
Prevent purged users from logging in
Browse files Browse the repository at this point in the history
Was possible if account was not deleted
  • Loading branch information
jdavcs committed Oct 31, 2024
1 parent 0f06c9b commit f89c1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/webapps/galaxy/controllers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def __validate_login(self, trans, payload=None, **kwd):
message, user = self.__autoregistration(trans, login, password)
if message:
return self.message_exception(trans, message)
elif user.purged:
message = "This account has been permanently deleted."
return self.message_exception(trans, message, sanitize=False)
elif user.deleted:
message = (
"This account has been marked deleted, contact your local Galaxy administrator to restore the account."
Expand Down

0 comments on commit f89c1d7

Please sign in to comment.