;
diff --git a/400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.html b/400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.html
index 91e732c..bf45b20 100644
--- a/400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.html
+++ b/400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.html
@@ -39,7 +39,11 @@
-
Confirm Password is required
+
Confirm Password is required
+
+
+ Password not match.
+
diff --git a/400-SOURCECODE/Admin/src/app/components/UserEntity/users.component.ts b/400-SOURCECODE/Admin/src/app/components/UserEntity/users.component.ts
index c0cff09..cefab55 100644
--- a/400-SOURCECODE/Admin/src/app/components/UserEntity/users.component.ts
+++ b/400-SOURCECODE/Admin/src/app/components/UserEntity/users.component.ts
@@ -153,16 +153,16 @@ export class UsersList implements OnInit, AfterViewChecked {
],
sort: true
});
-
- if(document.getElementById("fixed_table_rc") != null){
+
+ if(document.getElementById("fixed_table_rc") != null){
document.getElementById("fixed_table_rc").remove();
var testScript = document.createElement("script");
testScript.setAttribute("id", "fixed_table_rc");
testScript.setAttribute("src", "../assets/scripts/fixed_table_rc.js");
testScript.setAttribute("type", "text/javascript");
document.body.appendChild(testScript);
- }
-
+ }
+
this._loadingService.HideLoading("global-loading");
//this.GetUserList();
@@ -347,29 +347,31 @@ export class UsersList implements OnInit, AfterViewChecked {
}
public UpdateUser() {
- this.alerts = '';
- if (this.adduserFrm.value.UserName == '') {
- this.alerts += 'User Name minimum 8 characters is required.';
+ this.alerts = '';
+ if (this.adduserFrm.value.UserName == '' ||(!this.adduserFrm.controls.UserName.valid))
+ {
+ this.alerts += 'User Name of minimum 8 characters is required.';
}
- if (this.adduserFrm.value.Password == '') {
+ if (this.adduserFrm.value.Password == '' ||(!this.adduserFrm.controls.Password.valid )) {
this.alerts += 'Password of minimum 8 characters is required.';
}
if (this.adduserFrm.value.ConfirmPassword == '') {
this.alerts += 'Confirm Password is required.';
}
- if (this.adduserFrm.value.EmailId == '') {
+ if (this.adduserFrm.value.Password != this.adduserFrm.value.ConfirmPassword) {
+ this.alerts += 'Password and confirm password must be same';
+ }
+ if (this.adduserFrm.value.EmailId == '' ||(!this.adduserFrm.controls.EmailId.valid)) {
this.alerts += 'Email Id is required.';
}
+
if (this.adduserFrm.value.FirstName == '') {
this.alerts += 'First Name is required.';
}
if (this.adduserFrm.value.LastName == '') {
this.alerts += 'Last Name is required.';
}
- if (this.adduserFrm.value.Password != this.adduserFrm.value.ConfirmPassword) {
- this.alerts += 'Password and confirm password must be same';
- }
-
+
if (this.adduserFrm.valid && this.alerts == '') {
this.adduserFrm.controls['isActive'].setValue(this.adduserFrm.value.UserStatusActive)
@@ -445,7 +447,6 @@ export class UsersList implements OnInit, AfterViewChecked {
this._confirmService.activate("User Manage Rights Successfully updated.", "alertMsg");
this.checkedRecords = new Array(this.UserManageRightsList.length);
this.UncheckedRecords = new Array(this.UserManageRightsList.length);
-
}
//if (this.closeflag) {
// this.close.emit(null);