Forráskód Böngészése

师傅-去掉旧密码

liugc 1 éve
szülő
commit
5b6fe553b3
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/workerapi/logic/MasterWorkerLogic.php

+ 2 - 2
app/workerapi/logic/MasterWorkerLogic.php

@@ -29,7 +29,7 @@ class MasterWorkerLogic extends  BaseLogic
             }
             // 密码盐
             $passwordSalt = Config::get('project.unique_identification');
-            if (!empty($user['password'])) {
+            /*if (!empty($user['password'])) {
                 if (empty($params['old_password'])) {
                     throw new \Exception('请填写旧密码');
                 }
@@ -37,7 +37,7 @@ class MasterWorkerLogic extends  BaseLogic
                 if ($oldPassword != $user['password']) {
                     throw new \Exception('原密码不正确');
                 }
-            }
+            }*/
             // 保存密码
             $password = create_password($params['password'], $passwordSalt);
             $user->password = $password;