修改密码后使用新密码去登录,验证通不过了。登录验证代码:
public function login($username,$password){
if(auth()->attempt(['username'=>$username,'password'=>$password])){
return $this->proxy('password',[
'username'=>$username,
'password'=>$password,
'scope'=>'',
]);
}
return $this->failed('验证出错!'.$password);
}