diff options
Diffstat (limited to 'src/store/modules/Authentication')
-rw-r--r-- | src/store/modules/Authentication/AuthenticanStore.js | 6 |
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)); } } }; |