mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Add profile to user interface
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user