login
This commit is contained in:
parent
5986d89cc5
commit
dc2e799604
@ -12,6 +12,7 @@ class LoginCookie
|
|||||||
if(Cookie::get('user_id')){
|
if(Cookie::get('user_id')){
|
||||||
//dump(Cookie::get('user_id'));
|
//dump(Cookie::get('user_id'));
|
||||||
Session::set('user_id',Cookie::get('user_id'));
|
Session::set('user_id',Cookie::get('user_id'));
|
||||||
|
Session::set('user_name',Cookie::get('user_name'));
|
||||||
}
|
}
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<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>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<button type="submit" name="submit" class="layui-btn" lay-filter="user" lay-submit id="login">立即登录</button>
|
<button type="submit" name="submit" class="layui-btn" lay-filter="user" lay-submit id="login">立即登录</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user