From dc2e7996045e67807b73b62688186325f8e37792 Mon Sep 17 00:00:00 2001 From: toogee Date: Wed, 14 Oct 2020 15:45:00 +0800 Subject: [PATCH] login --- app/middleware/LoginCookie.php | 1 + view/taoler/index/login/login.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/middleware/LoginCookie.php b/app/middleware/LoginCookie.php index f2bb25e..da79c72 100644 --- a/app/middleware/LoginCookie.php +++ b/app/middleware/LoginCookie.php @@ -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); } diff --git a/view/taoler/index/login/login.html b/view/taoler/index/login/login.html index c876ee2..a69248e 100644 --- a/view/taoler/index/login/login.html +++ b/view/taoler/index/login/login.html @@ -36,7 +36,7 @@
- +