Explorar el Código

修改过期时间为10分钟

peng hace 2 años
padre
commit
fcab831a45
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -876,7 +876,7 @@ class v2authCodeView(TemplateView):
         )
         if send_res is not True:
             return response.json(44)
-        if reds.set_data(key=email + '_identifyingCode', val=identifyingCode, expire=300) is not True:
+        if reds.set_data(key=email + '_identifyingCode', val=identifyingCode, expire=600) is not True:
             return response.json(10, 'error')
         return response.json(0)