From 5efde5baffcd3d9e235b774c1fd31998444d477b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=8D=E4=B8=99=E5=86=9B?= Date: Fri, 9 May 2025 11:30:34 +0800 Subject: [PATCH 1/2] init --- addons/xcj_system/controllers/renren/login_controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/xcj_system/controllers/renren/login_controller.py b/addons/xcj_system/controllers/renren/login_controller.py index 835713f..a060e06 100644 --- a/addons/xcj_system/controllers/renren/login_controller.py +++ b/addons/xcj_system/controllers/renren/login_controller.py @@ -45,10 +45,10 @@ class LoginController(http.Controller): :param captcha: 验证码 :return: json """ - # 验证验证码 - value = M(self.model_variable).get(utils.captcha_key(key)) - if not equals_ignore_case(value, captcha): - return R.error(code=401, message="验证码错误") + # # 验证验证码 + # value = M(self.model_variable).get(utils.captcha_key(key)) + # if not equals_ignore_case(value, captcha): + # return R.error(code=401, message="验证码错误") # 验证用户名和密码 try: -- Gitee From 7544dcf5bebc830648a849628da4272ee68da038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=8D=E4=B8=99=E5=86=9B?= Date: Fri, 16 May 2025 11:58:29 +0800 Subject: [PATCH 2/2] prd --- addons/xcj_system/controllers/renren/login_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/xcj_system/controllers/renren/login_controller.py b/addons/xcj_system/controllers/renren/login_controller.py index a060e06..3f78304 100644 --- a/addons/xcj_system/controllers/renren/login_controller.py +++ b/addons/xcj_system/controllers/renren/login_controller.py @@ -46,9 +46,9 @@ class LoginController(http.Controller): :return: json """ # # 验证验证码 - # value = M(self.model_variable).get(utils.captcha_key(key)) - # if not equals_ignore_case(value, captcha): - # return R.error(code=401, message="验证码错误") + value = M(self.model_variable).get(utils.captcha_key(key)) + if not equals_ignore_case(value, captcha): + return R.error(code=401, message="验证码错误") # 验证用户名和密码 try: -- Gitee