From d16ea758017e968eeb4210275211b0a89c630d41 Mon Sep 17 00:00:00 2001 From: Smart Date: Mon, 17 Apr 2023 12:33:42 +0530 Subject: [PATCH] user --- .../add-business/add-business.component.html | 6 ++++++ .../user/add-user/add-user.component.html | 16 ++++++++++++++-- .../user/add-user/add-user.component.scss | 8 ++++++++ .../user/add-user/add-user.component.ts | 5 ++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/ng-seed/src/app/appoinment/business/add-business/add-business.component.html b/ng-seed/src/app/appoinment/business/add-business/add-business.component.html index 24b4c91..5648a42 100644 --- a/ng-seed/src/app/appoinment/business/add-business/add-business.component.html +++ b/ng-seed/src/app/appoinment/business/add-business/add-business.component.html @@ -7,12 +7,14 @@
+ Name Name is required Limit exceed + Email Please enter a valid email address @@ -23,6 +25,7 @@ + Phone No Contact No is required Invalid Contact No @@ -30,16 +33,19 @@ Limit exceed + Address Address is required Limit exceed + State State is required Limit exceed + City City is required Limit exceed diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.html b/ng-seed/src/app/appoinment/user/add-user/add-user.component.html index 7f115d7..4b5bf02 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.html +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.html @@ -58,12 +58,24 @@ Contact No must be at least 10 characters Limit exceed - + + + + Password + + + Password length must be greater than or equal to 8 and password must contain one or more uppercase , + lowercase , numeric and special characters + + + Password is required + +
diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss b/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss index 8da8901..2cd81c4 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss @@ -59,4 +59,12 @@ input[type=file]::file-selector-button { .imgSizeValidation{ color: red; font-family: ui-serif; + } + .user-mate{ + ::ng-deep .mat-form-field-subscript-wrapper { + position: inherit!important; + box-sizing: border-box; + width: 100%; + overflow: hidden; + } } \ No newline at end of file diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts b/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts index 5caf5f6..2cb5681 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts @@ -56,7 +56,10 @@ export class AddUserComponent implements OnInit { email: new FormControl('', [Validators.required, Validators.email,Validators.pattern( '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,63}$', ),]), - password: new FormControl('', [Validators.required, Validators.minLength(6)]), + // password: new FormControl('', [Validators.required, Validators.minLength(6)]), + password: new FormControl('', [Validators.required,Validators.pattern( + '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,12}$' + )]), logo: new FormControl('', null), // confirmPassword: new FormControl('', [Validators.required, Validators.minLength(6)]), createdBy:new FormControl(userrole,null),