Skip to content

Commit

Permalink
Leo/1017 password validation registers spaces as numbers (#2170)
Browse files Browse the repository at this point in the history
* tx pull

* tx pull

* tx pull TR

* tx pull PT

* tx pull

* Remove trailing spaces

* remove spaces after =

* remove spaces after =

* clean SUBSKRYBUJ

* 1017-password-validation-registers-spaces-as-numbers

* 1017-password-validation-registers-spaces-as-numbers

---------

Co-authored-by: Leonardo Mendoza Fernadez <[email protected]>
  • Loading branch information
leomendoza123 and Leonardo Mendoza Fernadez authored Feb 26, 2024
1 parent 1c13274 commit 522ce9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ export class FormPasswordComponent extends BaseForm implements OnInit {

get validateAtLeastALetterOrSymbol() {
const status =
!(this.form.value?.password as string).trim().length ||
this.form.hasError('required', 'password') ||
this.form.getError('pattern', 'password')?.requiredPattern ==
this.hasLetterOrSymbolPattern
Expand All @@ -280,12 +281,11 @@ export class FormPasswordComponent extends BaseForm implements OnInit {

get validateAtLeastANumber() {
const status =
!(this.form.value?.password as string).trim().length ||
this.form.hasError('required', 'password') ||
this.form.getError('pattern', 'password')?.requiredPattern ==
this.hasNumberPattern

this.currentValidateAtLeastANumber = status

return status
}

Expand Down

0 comments on commit 522ce9e

Please sign in to comment.