From 4ee057b70f5340b7d486b3602a76fda891681ac1 Mon Sep 17 00:00:00 2001 From: ssysm Date: Mon, 5 Feb 2018 02:22:59 +0800 Subject: [PATCH 1/4] update gurad logic --- client/src/app/common/admin-guard.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/common/admin-guard.service.ts b/client/src/app/common/admin-guard.service.ts index 81040c0..151661a 100644 --- a/client/src/app/common/admin-guard.service.ts +++ b/client/src/app/common/admin-guard.service.ts @@ -14,7 +14,7 @@ export class AdminGuardService { canActivate(route:ActivatedRouteSnapshot, state:RouterStateSnapshot):Observable|boolean { let the_cookie = document.cookie.split(';'); let token = the_cookie[0].split("=")[1]; - if(token){ + if(token || localStorage.getItem('loggedIn') == 'true'){ return true }else{ this.router.navigate(['/']); From 27e0f2bdfa2a37d1e6a66fd69812a1138e1971cb Mon Sep 17 00:00:00 2001 From: ssysm Date: Mon, 5 Feb 2018 02:29:37 +0800 Subject: [PATCH 2/4] change index page and add google a --- client/src/index.html | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/client/src/index.html b/client/src/index.html index c9f764f..8067199 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -10,22 +10,12 @@ - + + + + + + From afa290fdfb4fbae46e50a8c5a24bdb2f3d71947e Mon Sep 17 00:00:00 2001 From: ssysm Date: Mon, 5 Feb 2018 02:42:37 +0800 Subject: [PATCH 3/4] update comment and update seo for index.html --- client/src/index.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/client/src/index.html b/client/src/index.html index 8067199..c9e6125 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -1,29 +1,33 @@ + + Starry Sea Volunteers Association + + - StarrySea - - - - - - - - + + + + + + + +
Starrysea Logo

Starrysea International

Loading...

+