Merge pull request #19094 from jdavcs/dev_purged_no_login

Prevent purged users from logging in
This commit is contained in:
John Davis
2024-11-05 09:46:23 -05:00
committed by GitHub
@@ -161,6 +161,9 @@ class User(BaseUIController, UsesFormDefinitionsMixin):
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."