修改成功
This commit is contained in:
parent
76d6be6beb
commit
a13b241070
@ -32,7 +32,7 @@ class AccountController extends Controller
|
||||
$newPassword = $this->request->get('new_password');
|
||||
|
||||
if ($this->account->password === md5($newPassword . $this->account->salt)) {
|
||||
return err('密码未修改');
|
||||
return res(null, '修改成功');
|
||||
}
|
||||
|
||||
$attributes = [
|
||||
@ -40,9 +40,9 @@ class AccountController extends Controller
|
||||
'password' => $newPassword,
|
||||
];
|
||||
|
||||
$account = $this->companyAccountService->store($attributes);
|
||||
$this->companyAccountService->store($attributes);
|
||||
|
||||
return res($account, '修改成功');
|
||||
return res(null, '修改成功');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user