fix: 修改 settings.SECURITY_MFA_AUTH 开启判断条件

pull/6574/head
Bai 2021-08-02 10:49:09 +08:00 committed by Jiangjie.Bai
parent 5f6c207721
commit f16a9ddb86
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def migrate_security_mfa_auth(apps, schema_editor):
if not mfa_setting:
return
if mfa_setting.value:
if mfa_setting.value == 'true':
mfa_setting.value = 1
else:
mfa_setting.value = 0