This commit is contained in:
@@ -15,6 +15,7 @@ export default new Vuex.Store({
|
||||
apiUrl: "",
|
||||
helpUrl: "",
|
||||
apiToken: "-",
|
||||
downloadToken: "-",
|
||||
userId: 0,
|
||||
userName: "NOT AUTHENTICATED",
|
||||
roles: 0,
|
||||
@@ -46,10 +47,12 @@ export default new Vuex.Store({
|
||||
state.apiToken = data.apiToken;
|
||||
state.userName = data.userName;
|
||||
state.userType = data.userType;
|
||||
state.downloadToken = data.dlt;
|
||||
},
|
||||
logout(state) {
|
||||
//Things that are reset on logout
|
||||
state.apiToken = "-";
|
||||
state.downloadToken = "-";
|
||||
state.authenticated = false;
|
||||
state.userId = 0;
|
||||
state.userName = "NOT AUTHENTICATED";
|
||||
|
||||
Reference in New Issue
Block a user