mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-15 14:47:24 +00:00
fix: One login lock, resulting in two logs
This commit is contained in:
committed by
Jiangjie Bai
parent
16c79f59a7
commit
9e150b7fbe
@@ -211,7 +211,7 @@ class AuthPreCheckMixin:
|
||||
logger.warning('Ip was blocked' + ': ' + username + ':' + ip)
|
||||
exception = errors.BlockLoginError(username=username, ip=ip, request=self.request)
|
||||
if raise_exception:
|
||||
raise errors.BlockLoginError(username=username, ip=ip, request=self.request)
|
||||
raise exception
|
||||
else:
|
||||
return exception
|
||||
|
||||
|
||||
Reference in New Issue
Block a user