[Update] 添加OTP认证功能

This commit is contained in:
BaiJiangjie
2018-04-19 11:13:11 +08:00
parent 33bc73aba7
commit 12c8cf6b76
15 changed files with 347 additions and 215 deletions

View File

@@ -232,7 +232,7 @@ class User(AbstractUser):
def disable_otp(self):
self.otp_level = 0
self.otp_secret_key = ''
self.otp_secret_key = None
def to_json(self):
return OrderedDict({