Add profile to user interface

This commit is contained in:
Peter Maquiran
2021-05-10 15:45:09 +01:00
parent 556cd0bd9b
commit cbced6f859
2 changed files with 7 additions and 3 deletions
+1 -3
View File
@@ -7,9 +7,6 @@ export class UserForm {
export class User {
username: string;
password: string;
domainName: string;
BasicAuthKey: string;
UserId?: number;
Authorization: string;
@@ -28,4 +25,5 @@ export class User {
Id: 1
}[]
UserName: string
Profile: "PR" | "MDGPR"
}
+6
View File
@@ -54,6 +54,12 @@ export class AuthService {
console.log(response)
if (result) {
if( response.RoleID == 100000014){
response.Profile = 'PR'
} else if(response.RoleID == 100000011) {
response.Profile = 'MDGPR'
}
response.BasicAuthKey = user.BasicAuthKey
this.ValidatedUser = response;