change to authentication token and response data

This commit is contained in:
2020-05-09 00:10:34 +00:00
parent 091ac78a25
commit 563d62790d
2 changed files with 22 additions and 11 deletions

View File

@@ -46,10 +46,10 @@ export function processLogin(response) {
apiToken: response.data.token,
authenticated: true,
userId: Number(token.id),
userName: token.name,
roles: token["ayanova/roles"],
userType: token["usertype"],
dlt: token["dlt"]
userName: response.data.name,
roles: response.data.roles,
userType: response.data.usertype,
dlt: response.data.dlt
});
//Initialize the application