|
|
@@ -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;
|