Feature 10941: User Management Enhancements
- Added NG-UI support for user management enhancements
- It includes login history along with password expiry & account
expiry warnings, unlock & renew user for admin users
- Change password field for admin: visible at user actions field
Change password field for users: visible at header of UI
Change-Id: If952069b62efd6226b633b35b3634cf3f7848096
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/models/CommonModel.ts b/src/models/CommonModel.ts
index ed35029..abf0cb6 100644
--- a/src/models/CommonModel.ts
+++ b/src/models/CommonModel.ts
@@ -73,7 +73,11 @@
k8OperationalStateStateSecondStep = 'ENABLED',
k8OperationalStateThirdStep = 'ERROR',
done = 'done',
- close = 'close'
+ close = 'close',
+ userActive = 'active',
+ userLocked = 'locked',
+ userExpired = 'expired',
+ userAlwaysActive = 'always-active'
}
/** Interface for Post options */
export interface POSTAPIRESOURCE {
@@ -342,3 +346,9 @@
label: string;
value: string;
}
+/** Interface for Login */
+export interface UNLOCKPARAMS {
+ system_admin_id?: string;
+ unlock?: boolean;
+ renew?: boolean;
+}
diff --git a/src/models/UserModel.ts b/src/models/UserModel.ts
index 64626c8..e49670a 100644
--- a/src/models/UserModel.ts
+++ b/src/models/UserModel.ts
@@ -37,6 +37,8 @@
identifier: string;
projectListName?: string;
project_role_mappings?: ProjectRoleMappings[];
+ account_expire_time: string;
+ password_expire_time?: string;
}
/** Interface for user role mappings */
@@ -50,6 +52,9 @@
salt: string;
created: number;
modified: number;
+ user_status?: string;
+ account_expire_time?: number;
+ password_expire_time?: number;
}
/** Interface for UserDetail */
export interface UserData {
@@ -58,6 +63,8 @@
modified: string;
created: string;
identifier: string;
+ user_status: string;
+ account_expire_time?: string;
}
/** Interface for Project Roles Mappings */
diff --git a/src/models/VNFDModel.ts b/src/models/VNFDModel.ts
index 6eafe39..530ba48 100644
--- a/src/models/VNFDModel.ts
+++ b/src/models/VNFDModel.ts
@@ -33,6 +33,17 @@
admin: boolean;
message?: string;
user_id?: string;
+ roles?: RolesData[];
+ last_login?: number;
+ login_count?: string;
+ user_show?: boolean;
+ admin_show?: boolean;
+}
+
+/** Interface for Roles */
+export interface RolesData {
+ name?: string;
+ id?: string;
}
/** Interface for ProjectDetails */