Skip to content

Commit

Permalink
Merge pull request #19094 from jdavcs/dev_purged_no_login
Browse files Browse the repository at this point in the history
Prevent purged users from logging in
  • Loading branch information
jdavcs authored Nov 5, 2024
2 parents 3150e23 + f89c1d7 commit 3523f02
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 3523f02

Please sign in to comment.