From 4af4cb34a97b12f8edcc9ac749e594dd2bea1735 Mon Sep 17 00:00:00 2001 From: Tanin Pewluangsawat <70503441+TaninDean@users.noreply.github.com> Date: Mon, 15 May 2023 11:32:35 +0700 Subject: [PATCH] [Gb-78] Forgot password page (#6) * add style to input block * Add base ui for forgot password page * Add method to handler login and register * Add package sha1 to check compromised password * implement forget password * Add redirect after reset password * reabase master * Add the base login and register page * Add method to handler login and register * Add package sha1 to check compromised password * rebase * reverse login * add missing return --- src/router/index.ts | 6 +++ src/views/ForgetPassword.vue | 75 ++++++++++++++++++++++++++++++++++++ src/views/Register.vue | 32 ++++++++++++--- src/views/SignIn.vue | 2 +- 4 files changed, 109 insertions(+), 6 deletions(-) create mode 100644 src/views/ForgetPassword.vue diff --git a/src/router/index.ts b/src/router/index.ts index d9b5bd9..fe34d3b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,6 +11,7 @@ import Account from "@/views/Account/Account.vue"; import LinkAccount from "@/views/Account/LinkAccount.vue"; import PageNotFound from "@/views/PageNotFound.vue"; import Register from "@/views/Register.vue" +import forgetPassword from "@/views/ForgetPassword.vue" Vue.use(VueRouter); @@ -30,6 +31,11 @@ const routes: Array = [ name: "Register", component: Register, }, + { + path: "/forgot-password", + name: "forgetPassword", + component: forgetPassword, + }, { path: "/home", name: "HomePage", diff --git a/src/views/ForgetPassword.vue b/src/views/ForgetPassword.vue new file mode 100644 index 0000000..f13234f --- /dev/null +++ b/src/views/ForgetPassword.vue @@ -0,0 +1,75 @@ + + + + + + \ No newline at end of file diff --git a/src/views/Register.vue b/src/views/Register.vue index 9f1a3d0..faf4dc1 100644 --- a/src/views/Register.vue +++ b/src/views/Register.vue @@ -40,6 +40,8 @@