From 6e4c2ddabd5867900a6f5ca1c1bca35b758ca6d3 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 16 Apr 2021 10:36:52 +0200 Subject: [PATCH] Fix navbar and login view --- src/api.ts | 6 +++--- src/components/LoginForm.vue | 16 +++++++++++++++- src/components/Navbar.vue | 10 +++++++--- src/router/index.ts | 20 +++++++++++++++----- src/views/{Home.vue => MainPage.vue} | 13 +++++++++---- 5 files changed, 49 insertions(+), 16 deletions(-) rename src/views/{Home.vue => MainPage.vue} (72%) diff --git a/src/api.ts b/src/api.ts index d046fb0..81845cd 100644 --- a/src/api.ts +++ b/src/api.ts @@ -39,11 +39,11 @@ async function request( } export class User { - private email: string | undefined; - private password: string | undefined; + email: string | undefined; + password: string | undefined; private username: string | null = null; private confidantEmail: string | null = null; - private isAuthenticated = false; + isAuthenticated = false; private token = ""; static async confirm(uid: string, token: string): Promise { diff --git a/src/components/LoginForm.vue b/src/components/LoginForm.vue index 11844f0..a47d8f1 100644 --- a/src/components/LoginForm.vue +++ b/src/components/LoginForm.vue @@ -24,8 +24,9 @@