From 330585760167d233a67a9301be991ba26b8e57df Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Tue, 16 Jun 2020 13:21:21 -0700 Subject: Add ChangePassword component Add non-functional Change password page and router definition. The page has a form and some frontend validations but backend functionality and api requests are not tied in yet. Page can be viewed by manually navigating to /change-password. Signed-off-by: Yoshie Muranaka Change-Id: If5e6c6a5120b86fc457d8cab4c82333c33ef745f --- src/locales/en-US.json | 10 +++ src/router/index.js | 8 ++ src/views/ChangePassword/ChangePassword.vue | 115 ++++++++++++++++++++++++++++ src/views/ChangePassword/index.js | 2 + 4 files changed, 135 insertions(+) create mode 100644 src/views/ChangePassword/ChangePassword.vue create mode 100644 src/views/ChangePassword/index.js diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 2a418040..76d9aaf1 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -35,6 +35,7 @@ "invalidValue": "Invalid value", "lengthMustBeBetween": "Length must be between %{min} – %{max} characters", "mustBeAtLeast": "Must be at least %{value}", + "passwordsDoNotMatch": "Passwords do not match", "required": "Required", "search": "Search", "selectAnOption": "Select an option", @@ -93,6 +94,7 @@ "sslCertificates": "@:appPageTitle.sslCertificates" }, "appPageTitle": { + "changePassword": "Change password", "dateTimeSettings": "Date and time settings", "eventLogs": "Event logs", "firmware": "Firmware", @@ -113,6 +115,14 @@ "sslCertificates": "SSL Certificates", "unauthorized": "Unauthorized" }, + "pageChangePassword": { + "changePassword": "Change password", + "changePasswordAlertMessage": "The password is expired and must be changed.", + "confirmNewPassword": "Confirm new password", + "goBack": "Go back", + "newPassword": "New password", + "username": "Username" + }, "pageDateTimeSettings": { "alert": { "message": "To change how date and time are displayed (either UTC or browser offset) throughout the application, visit ", diff --git a/src/router/index.js b/src/router/index.js index 3d8c646a..8fa42c89 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -158,6 +158,14 @@ const routes = [ meta: { title: 'appPageTitle.login' } + }, + { + path: '/change-password', + name: 'change-password', + component: () => import('@/views/ChangePassword'), + meta: { + title: 'appPageTitle.changePassword' + } } ] }, diff --git a/src/views/ChangePassword/ChangePassword.vue b/src/views/ChangePassword/ChangePassword.vue new file mode 100644 index 00000000..0b1b6897 --- /dev/null +++ b/src/views/ChangePassword/ChangePassword.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/src/views/ChangePassword/index.js b/src/views/ChangePassword/index.js new file mode 100644 index 00000000..9de0af42 --- /dev/null +++ b/src/views/ChangePassword/index.js @@ -0,0 +1,2 @@ +import ChangePassword from './ChangePassword.vue'; +export default ChangePassword; -- cgit v1.2.3