perf: modify user login ACL msg

This commit is contained in:
wangruidong
2024-07-01 19:28:58 +08:00
committed by w940853815
parent 237b4a82c9
commit c718fe1a9d
5 changed files with 8 additions and 8 deletions

View File

@@ -353,7 +353,7 @@ class AuthACLMixin:
return
if acl.is_action(LoginACL.ActionChoices.reject):
raise errors.LoginACLIPAndTimePeriodNotAllowed(user.username, request=self.request)
raise errors.LoginACLNotAllowed(user.username, request=self.request)
if acl.is_action(acl.ActionChoices.review):
self.request.session['auth_confirm_required'] = '1'