This commit is contained in:
2021-03-11 18:23:20 +00:00
parent d1d2dd4814
commit 66fcd9515d
6 changed files with 250 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ export default new Vuex.Store({
helpUrl: "",
apiToken: "-",
downloadToken: "-",
tfaEnabled: undefined,
userId: 0,
userName: "NOT AUTHENTICATED",
roles: 0,
@@ -68,11 +69,13 @@ export default new Vuex.Store({
state.userName = data.userName;
state.userType = data.userType;
state.downloadToken = data.dlt;
state.tfaEnabled = data.tfaEnabled;
},
logout(state) {
//Things that are reset on logout
state.apiToken = "-";
state.downloadToken = "-";
state.tfaEnabled = undefined;
state.authenticated = false;
state.userId = 0;
state.userName = "NOT AUTHENTICATED";