This commit is contained in:
2020-04-21 18:32:31 +00:00
parent cc3e4e204f
commit 9c9f5108c9
4 changed files with 10 additions and 2 deletions

View File

@@ -66,6 +66,10 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 2: @@@@@@@@@@@ ROADMAP STAGE 2:
todo: Attachments / wiki: wiki html processor needs to append dl token to local files in the wikiview automatically in real time
downloadToken:"tR6ocdDYzU1WVQpdpH8Ux7AWLKvJhYOKth7bBKLRAM"
todo: ATTACHMENTS todo: ATTACHMENTS
- TODO: PLANNING - should attachments be actually attached in the db to their object? like Wiki was changed to do? - TODO: PLANNING - should attachments be actually attached in the db to their object? like Wiki was changed to do?
- is this even possible? - is this even possible?

View File

@@ -48,7 +48,8 @@ export function processLogin(response) {
userId: Number(token.id), userId: Number(token.id),
userName: token.name, userName: token.name,
roles: token["ayanova/roles"], roles: token["ayanova/roles"],
userType: token["usertype"] userType: token["usertype"],
dlt: token["dlt"]
}); });
//Initialize the application //Initialize the application

View File

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