diff --git a/lib/galaxy/webapps/galaxy/controllers/user.py b/lib/galaxy/webapps/galaxy/controllers/user.py index b0cb5ae5fe69..5ed60dbb706f 100644 --- a/lib/galaxy/webapps/galaxy/controllers/user.py +++ b/lib/galaxy/webapps/galaxy/controllers/user.py @@ -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."