修改bug

master
ELF 5 years ago
parent ea15b6427c
commit bfd8d2d6f4

@ -133,10 +133,10 @@ class CommonController extends BaseController {
$this->respondError('用户不存在');
}
//更新用户
$upres = $userApi->updatePassword($userInfo['id'], $user['password']);
$upres = $userApi->updatePassword($userInfo['id'], $params['password']);
if($upres){
//自动登陆
$userId = $userApi->login($user['account'], $user['password'],1);
// $userId = $userApi->login($params['account'], $params['password'], 1);
$this->respondSuccess('修改成功');
}else{

Loading…
Cancel
Save