From 5f4e57532ca6c2f83e8e174cef36a41610fd0606 Mon Sep 17 00:00:00 2001 From: Lapor Chen <31620109+laporchen@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:48:21 +0800 Subject: [PATCH] feat: finish password reset page * add api * add error alert * add success state --- src/i18n/en.json | 5 +++-- src/i18n/zh-tw.json | 3 ++- src/pages/password_reset.vue | 42 ++++++++++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/i18n/en.json b/src/i18n/en.json index 76b313f..6268337 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -410,7 +410,8 @@ "email": "Email address", "status": { "error": "Failed to send an email to you, we cannot find this email.", - "success": "Success, please check your inbox." - } + "success": "Email sent, please check your inbox." + }, + "return-home": "Return Home" } } diff --git a/src/i18n/zh-tw.json b/src/i18n/zh-tw.json index 5b03092..757c381 100644 --- a/src/i18n/zh-tw.json +++ b/src/i18n/zh-tw.json @@ -410,6 +410,7 @@ "status": { "error": "找不到該信箱。", "success": "發送成功,請檢查你的電子信箱。" - } + }, + "return-home": "回到首頁" } } diff --git a/src/pages/password_reset.vue b/src/pages/password_reset.vue index 5dcec57..b4069be 100644 --- a/src/pages/password_reset.vue +++ b/src/pages/password_reset.vue @@ -1,9 +1,13 @@