Add check if password change required at Login
After successfully authenticating on the Login page, check
/redfish/v1/AccountService/Accounts/${username} endpoint for
the PasswordChangeRequired property to see whether or not the
password is expired. If the password is expired, then navigate
to the Change password page, if the password isn't expired
navigate to the Overview page.
After successfully changing an expired password, navigate to the
Overview page.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I32de5f71bcfcbe4099c2953a31c05ba0ebe670bc
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 76d9aaf..02600f4 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -118,6 +118,7 @@
"pageChangePassword": {
"changePassword": "Change password",
"changePasswordAlertMessage": "The password is expired and must be changed.",
+ "changePasswordError": "There was an error changing the password.",
"confirmNewPassword": "Confirm new password",
"goBack": "Go back",
"newPassword": "New password",