API接口
1.新增鉴权接口/api/v1/authToken 2.修复注册,登录,获取首页初始化数据,获取用户信息接口报错
This commit is contained in:
@@ -74,7 +74,7 @@ class Ems extends Frontend
|
||||
return $this->error(__('Please use the account registration email to send the verification code'));
|
||||
}
|
||||
$password = $request->post('password');
|
||||
if (!verify_password($password, $this->auth->password, ['salt' => $this->auth->salt])) {
|
||||
if (!verify_password($password, $this->auth->password, ['salt' => $this->auth->salt ?? ''])) {
|
||||
return $this->error(__('Password error'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user