feat: 支持自定义短信认证(文件) (#11784)

* feat: 支持自定义短信认证(文件)

* perf: 翻译

* perf: 还原注释
This commit is contained in:
jiangweidong
2023-10-10 18:23:54 +08:00
committed by GitHub
parent 333746e7c4
commit 70f0f55ddb
12 changed files with 193 additions and 84 deletions

View File

@@ -67,7 +67,7 @@ class SendAndVerifyCodeUtil(object):
return cache.get(self.key)
def __generate(self):
code = random_string(4, lower=False, upper=False)
code = random_string(settings.SMS_CODE_LENGTH, lower=False, upper=False)
self.code = code
return code