change to authentication token and response data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user