perf: 统一校验当前用户api (#8324)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-06-07 19:26:07 +08:00
committed by GitHub
parent 2366f02d10
commit a5acdb9f60
16 changed files with 148 additions and 31 deletions

View File

@@ -1,2 +1,10 @@
from django.db.models import TextChoices
RSA_PRIVATE_KEY = 'rsa_private_key'
RSA_PUBLIC_KEY = 'rsa_public_key'
class ConfirmType(TextChoices):
RELOGIN = 'relogin', 'Re-Login'
PASSWORD = 'password', 'Password'
MFA = 'mfa', 'MFA'