mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-27 11:12:54 +00:00
fix: Implement function _check_code
This commit is contained in:
parent
8abcd201bc
commit
782401ef86
@ -15,7 +15,7 @@ class MFAEmail(BaseMFA):
|
||||
display_name = _('Email')
|
||||
placeholder = _('Email verification code')
|
||||
|
||||
def check_code(self, code):
|
||||
def _check_code(self, code):
|
||||
assert self.is_authenticated()
|
||||
sender_util = SendAndVerifyCodeUtil(self.user.email, backend=self.name)
|
||||
ok = sender_util.verify(code)
|
||||
|
Loading…
Reference in New Issue
Block a user