summaryrefslogtreecommitdiff
path: root/src/store/modules/Authentication/AuthenticanStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/Authentication/AuthenticanStore.js')
-rw-r--r--src/store/modules/Authentication/AuthenticanStore.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js
index 407c2b57..4afb11de 100644
--- a/src/store/modules/Authentication/AuthenticanStore.js
+++ b/src/store/modules/Authentication/AuthenticanStore.js
@@ -43,6 +43,12 @@ const AuthenticationStore = {
.then(() => commit('logout'))
.then(() => router.go('/login'))
.catch(error => console.log(error));
+ },
+ async checkPasswordChangeRequired(_, username) {
+ return await api
+ .get(`/redfish/v1/AccountService/Accounts/${username}`)
+ .then(({ data: { PasswordChangeRequired } }) => PasswordChangeRequired)
+ .catch(error => console.log(error));
}
}
};