ShuanghongS 1 year ago
parent
commit
6a0f5d2dda
1 changed files with 10 additions and 10 deletions
  1. 10 10
      service/login.class.php

+ 10 - 10
service/login.class.php

@@ -975,16 +975,16 @@ class login {
         $password = common::check_input($_POST['password']);
     
         //首先校验验证码 展示注销掉
-        // $verifcation_code = 
-        // $verifcation_code = common::check_input($_POST['verifcation_code']);
-        // if (strtolower($_SESSION['captcha']) != strtolower($verifcation_code)) {    
-        //     $data = array(
-        //         'msg' => 'verifcation_error',
-        //         'data' => ''
-        //     );
-        //     common::echo_json_encode(400, $data);
-        //     exit();
-        // }
+        $verifcation_code = 
+        $verifcation_code = common::check_input($_POST['verifcation_code']);
+        if (strtolower($_SESSION['captcha']) != strtolower($verifcation_code)) {    
+            $data = array(
+                'msg' => 'verifcation_error',
+                'data' => ''
+            );
+            common::echo_json_encode(400, $data);
+            exit();
+        }
         
         $sql = "select ra_password as password from ra_online_user where lower(user_login) = '" . strtolower($loginName) . "'";
         $rs = common::excuteObjectSql($sql);