summaryrefslogtreecommitdiff
path: root/src/store/index.js
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2019-12-05 01:30:08 +0300
committerDerick Montague <derick.montague@ibm.com>2020-01-23 02:44:50 +0300
commite080a1a7593e83a49d623ffdd452fd0e1c617889 (patch)
treebb94dee85cae80a3f54f4fbcf1d816f304129e67 /src/store/index.js
parent186ce2e407812f417aba7a2ee2ab6cae5d5f3b0e (diff)
downloadwebui-vue-e080a1a7593e83a49d623ffdd452fd0e1c617889.tar.xz
Add login and logout functionality
- Add AuthenticationStore - Add ability to login and logout - Add route navigation guard - Add login styles - Add temporary authentication for api call - Add Login directory - Add index.js In order to login a .env.development.local file that contains BASE_URL="https://<ip address> or <FQDN>" Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I88b93e287e66f4bae82a1ec2934cdef12d78264e
Diffstat (limited to 'src/store/index.js')
-rw-r--r--src/store/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store/index.js b/src/store/index.js
index af06a471..b4be6ccd 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,8 +1,9 @@
import Vue from "vue";
import Vuex from "vuex";
-import LocalUserManagementStore from "./modules/AccessControl/LocalUserMangementStore";
import GlobalStore from "./modules/GlobalStore";
+import AuthenticationStore from "./modules/Authentication/AuthenticanStore";
+import LocalUserManagementStore from "./modules/AccessControl/LocalUserMangementStore";
Vue.use(Vuex);
@@ -12,6 +13,7 @@ export default new Vuex.Store({
actions: {},
modules: {
global: GlobalStore,
+ authentication: AuthenticationStore,
localUsers: LocalUserManagementStore
}
});