fix: 修复KoKo登录时,未开启SMS服务出现了SMS选项的问题

pull/6922/head
Michael Bai 2021-09-22 11:16:06 +08:00
parent da2dea5003
commit 3b1d199669
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class MFAMixin:
methods = []
if self.otp_secret_key:
methods.append(MFAType.OTP)
if self.phone:
if settings.XPACK_ENABLED and settings.SMS_ENABLED and self.phone:
methods.append(MFAType.SMS_CODE)
return methods