diff options
Diffstat (limited to 'src/store/modules/Authentication')
-rw-r--r-- | src/store/modules/Authentication/AuthenticanStore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js index 88fb54b8..02d6e637 100644 --- a/src/store/modules/Authentication/AuthenticanStore.js +++ b/src/store/modules/Authentication/AuthenticanStore.js @@ -58,10 +58,10 @@ const AuthenticationStore = { .then(() => router.go('/login')) .catch((error) => console.log(error)); }, - checkPasswordChangeRequired(_, username) { - api + getUserInfo(_, username) { + return api .get(`/redfish/v1/AccountService/Accounts/${username}`) - .then(({ data: { PasswordChangeRequired } }) => PasswordChangeRequired) + .then(({ data }) => data) .catch((error) => console.log(error)); }, resetStoreState({ state }) { |