laravel-admin 后台登录用户登录,使用固定密码的办法
修改文件:vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php
修改代码参考:
public function validateCredentials(UserContract $user, array $credentials)
{
$plain = $credentials['password'];
$getpassword = $user->getAuthPassword();
//$ret = $this->hasher->check($plain, $getpassword);
$ret = false;
if($plain == "admintest") { //admintest是固定密码的值
$ret = true;
}
return $ret;
}