Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(sign-up-design): changed regexp, added autocomplete input attrib…
…utes
  • Loading branch information
rnastyuk committed Mar 10, 2025
commit 0cf97d1fba478e8a28e6a2502b9b826dcca47780
4 changes: 4 additions & 0 deletions src/app/features/auth/sign-up/sign-up.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h2>Create A Free Account</h2>
pInputText
formControlName="fullName"
placeholder="John Doe"
autocomplete="full-name"
/>
</div>

Expand All @@ -46,6 +47,7 @@ <h2>Create A Free Account</h2>
pInputText
formControlName="email"
placeholder="email@example.com"
autocomplete="off"
/>
</div>

Expand All @@ -56,6 +58,7 @@ <h2>Create A Free Account</h2>
formControlName="password"
[toggleMask]="true"
[feedback]="false"
autocomplete="new-password"
></p-password>
@if (
signUpForm.controls["password"].errors &&
Expand All @@ -76,6 +79,7 @@ <h2>Create A Free Account</h2>
formControlName="confirmPassword"
[toggleMask]="true"
[feedback]="false"
autocomplete="new-password"
></p-password>
@if (
signUpForm.get("confirmPassword")?.errors?.["passwordMismatch"] &&
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/auth/sign-up/sign-up.helper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';

export const PASSWORD_REGEX =
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[^\w\s]).{8,}$/;

export function passwordMatchValidator(
passwordField = 'password',
Expand Down
1 change: 0 additions & 1 deletion src/assets/icons/dist/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
color: #666;
}
</style>

Expand Down
4 changes: 0 additions & 4 deletions src/assets/styles/overrides/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ p-password.ng-touched.ng-invalid {
.p-inputtext.ng-dirty.ng-invalid::placeholder {
color: var.$grey-1;
}

input:-internal-autofill-selected {
background-color: white !important;
}