This commit is contained in:
toogee 2020-10-14 15:45:00 +08:00
parent 5986d89cc5
commit dc2e799604
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class LoginCookie
if(Cookie::get('user_id')){
//dump(Cookie::get('user_id'));
Session::set('user_id',Cookie::get('user_id'));
Session::set('user_name',Cookie::get('user_name'));
}
return $next($request);
}

View File

@ -36,7 +36,7 @@
</div>
</div>
<div class="layui-form-item">
<input type="checkbox" name="remember" title="记住密码" lay-skin="primary" lay-filter="remember" value="1" checked>
<input type="checkbox" name="remember" title="记住密码" lay-skin="primary" lay-filter="remember" value="1">
</div>
<div class="layui-form-item">
<button type="submit" name="submit" class="layui-btn" lay-filter="user" lay-submit id="login">立即登录</button>