From ada2ce997f89d7ee9866d83b889105f5d411f0b6 Mon Sep 17 00:00:00 2001 From: Conor McNamara Date: Mon, 20 Mar 2023 12:06:20 +0000 Subject: [PATCH] Fix Firebase refresh and enable unhide passwords --- firebase.json | 6 ++++++ src/pages/AccountPage.vue | 13 ++++++++++--- src/pages/LoginPage.vue | 8 +++++--- src/pages/SignUpPage.vue | 7 +++++-- src/router/routes.js | 1 - 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/firebase.json b/firebase.json index b0d3626..34b1e49 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,12 @@ { "hosting": { "public": "dist", + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ], "ignore": [ "firebase.json", "**/.*", diff --git a/src/pages/AccountPage.vue b/src/pages/AccountPage.vue index 93d398a..6d6ec24 100644 --- a/src/pages/AccountPage.vue +++ b/src/pages/AccountPage.vue @@ -3,17 +3,22 @@

Account Settings

Your Email: {{ this.user.email }}

-

Enter your current password to edit account settings

-

Send a password reset email

+

Enter your current password to edit account settings

+ + + +

Change email

Change password

- + + +

Delete account

@@ -57,6 +62,8 @@ export default { toastMessage: "", toastBackground: "", reAuthSuccessful: false, + showCurrentPassword: false, + showNewPassword: false, toast } }, diff --git a/src/pages/LoginPage.vue b/src/pages/LoginPage.vue index 2884170..0089348 100644 --- a/src/pages/LoginPage.vue +++ b/src/pages/LoginPage.vue @@ -8,7 +8,9 @@

Email Address

Password

- + + + Forgot password? Don't have an account? @@ -53,6 +55,7 @@ export default { toastMessage: "", toastBackground: "", forgotPassword: false, + showPassword: false, toast } }, @@ -161,7 +164,7 @@ h1 { margin-bottom: 20px; } -.loginbox input[type="email"], input[type="password"] { +.loginbox input[type="email"], input[type="password"], input[type="text"] { border: none; border-bottom: 1px solid #fff; background: transparent; @@ -175,7 +178,6 @@ h1 { cursor: pointer; background: #66a3ff; color: #000; - } .loginbox a { diff --git a/src/pages/SignUpPage.vue b/src/pages/SignUpPage.vue index 6832a36..aca9e68 100644 --- a/src/pages/SignUpPage.vue +++ b/src/pages/SignUpPage.vue @@ -7,7 +7,9 @@

Email Address

Password

- + + + Passwords must have 6 or more characters Already have an account? @@ -39,6 +41,7 @@ export default { password: "", toastMessage: "", toastBackground: "", + showPassword: true, toast } }, @@ -129,7 +132,7 @@ h1 { margin-bottom: 20px; } -.loginbox input[type="email"], input[type="password"] { +.loginbox input[type="email"], input[type="password"], input[type="text"] { border: none; border-bottom: 1px solid #fff; background: transparent; diff --git a/src/router/routes.js b/src/router/routes.js index 074e778..6f1a9ce 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -25,6 +25,5 @@ export default [ { path: "/account", component:loadPage('AccountPage'), beforeEnter: isAuth }, { path: "/signup", component:loadPage('SignUpPage') }, { path: "/login", component:loadPage('LoginPage') }, - { path: "/404", component:loadPage('404Page') }, { path: "/:catchAll(.*)", component:loadPage('404Page') } ] \ No newline at end of file