From 9cdf2326b86feb4518d1e111329b1d12a0b55273 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Tue, 25 Feb 2025 22:59:18 -0500 Subject: [PATCH] fix unauthed bug and icons --- public/join.svg | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ public/login.svg | 53 +++++++++++++++++++++++++++++++++++ routes/init.js | 6 ++-- 3 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 public/join.svg create mode 100644 public/login.svg diff --git a/public/join.svg b/public/join.svg new file mode 100644 index 0000000..a0c9a50 --- /dev/null +++ b/public/join.svg @@ -0,0 +1,73 @@ + + + + diff --git a/public/login.svg b/public/login.svg new file mode 100644 index 0000000..6a81287 --- /dev/null +++ b/public/login.svg @@ -0,0 +1,53 @@ + + + + diff --git a/routes/init.js b/routes/init.js index 7308a61..708c995 100644 --- a/routes/init.js +++ b/routes/init.js @@ -31,6 +31,7 @@ async function auther(req, res, next) { if (!token) { res.auth = {}; + next(); return; } @@ -66,8 +67,9 @@ function initr(req, res, next) { if (!res.auth || !res.auth.valid) { headerCtx = [ { link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' }, - { link: '/you/login', icon: '/walls.svg', name: 'Log in' }, - { link: '/you/new', icon: '/walls.svg', name: 'Join' } + { link: '/walls/list', icon: '/walls.svg', name: 'Explore' }, + { link: '/you/login', icon: '/login.svg', name: 'Log in' }, + { link: '/you/new', icon: '/join.svg', name: 'Join' } ]; }