perf: Update confirmation backend definitions to use ConfirmType

This commit is contained in:
wangruidong
2025-02-25 10:44:19 +08:00
committed by 老广
parent 96a0cbc35d
commit ff9ad2680f
5 changed files with 14 additions and 14 deletions

View File

@@ -3,3 +3,4 @@ from .password import ConfirmPassword
from .relogin import ConfirmReLogin
CONFIRM_BACKENDS = [ConfirmReLogin, ConfirmPassword, ConfirmMFA]
CONFIRM_BACKEND_MAP = {backend.name: backend for backend in CONFIRM_BACKENDS}