From 782401ef86a88086b7c18ae63c864f0bca41fd72 Mon Sep 17 00:00:00 2001 From: halo Date: Mon, 7 Apr 2025 16:13:02 +0800 Subject: [PATCH] fix: Implement function _check_code --- apps/authentication/mfa/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/mfa/email.py b/apps/authentication/mfa/email.py index dcf72d4d7..e1938e6c2 100644 --- a/apps/authentication/mfa/email.py +++ b/apps/authentication/mfa/email.py @@ -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)