Password Validation and Google phishing error pass (#1913)

* Updating password validation

# Changed:
- Changed: Updated password validation to use pattern so user can not submit or create passwords <6 or >32 characters long.

* Removed the svg for image in case it's causing google security issues.

---------

Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
Robbie Davis 2023-04-03 15:40:58 -04:00 committed by GitHub
parent 34e556f0ab
commit 552a5fe947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 184 deletions

View file

@ -21,7 +21,7 @@ export class ConfirmEmailComponent {
registerForm: FormGroup = new FormGroup({
email: new FormControl('', [Validators.required, Validators.email]),
username: new FormControl('', [Validators.required]),
password: new FormControl('', [Validators.required, Validators.maxLength(32), Validators.minLength(6)]),
password: new FormControl('', [Validators.required, Validators.maxLength(32), Validators.minLength(6), Validators.pattern("^.{6,32}$")]),
});
/**