Skip to content

Commit

Permalink
Merge pull request #448 from GSuma21/login_security_changes
Browse files Browse the repository at this point in the history
issue #fix register page
  • Loading branch information
Cafnanc authored Mar 26, 2024
2 parents fec74a0 + eca2e30 commit e4d0e15
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/pages/auth/register/register.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ export class RegisterPage implements OnInit {
position: 'floating',
errorMessage:{
required: "Enter password",
minlength:(environment as any)?.password?.minLength?.password?.minLength ? "Please enter minimum " + (environment as any)?.password?.minLength.password.minLength+" characters.":"Please enter minimum 8 characters.",
pattern: (environment as any)?.password?.minLength?.password.errorMessage ? (environment as any)?.password?.minLength?.password.errorMessage :"Only letters, numbers,!@#%$&()-`.+,/\" are allowed",
minlength:(environment as any)?.password?.minLength ? "Please enter minimum " + (environment as any)?.password?.minLength +" characters." : "Please enter minimum 8 characters.",
pattern: (environment as any)?.password?.errorMessage ? (environment as any)?.password?.errorMessage :"Only letters, numbers,!@#%$&()-`.+,/\" are allowed",
},
validators: {
required: true,
minLength:(environment as any)?.password?.minLength?.password.minLength? (environment as any)?.password?.minLength?.password.minLength: 8,
pattern: (environment as any)?.password?.minLength?.password.regexPattern ? (environment as any)?.password?.minLength?.password.regexPattern :"^[a-zA-Z0-9!@#%$&()\\-`.+,/\"]*$",
minLength:(environment as any)?.password?.minLength ? (environment as any)?.password?.minLength: 8,
pattern: (environment as any)?.password?.regexPattern ? (environment as any)?.password?.regexPattern :"^[a-zA-Z0-9!@#%$&()\\-`.+,/\"]*$",
},
},
{
Expand All @@ -79,13 +79,13 @@ export class RegisterPage implements OnInit {
position: 'floating',
errorMessage:{
required: "Re-enter password",
minlength:(environment as any)?.password?.minLength?.password?.minLength ? "Please enter minimum " + (environment as any)?.password?.minLength.password.minLength+" characters.":"Please enter minimum 8 characters.",
pattern: (environment as any)?.password?.minLength?.password?.errorMessage ? (environment as any)?.password?.minLength?.password.errorMessage :"Only letters, numbers,!@#%$&()-`.+,/\" are allowed",
minlength:(environment as any)?.password?.minLength ? "Please enter minimum " + (environment as any)?.password.minLength+" characters.":"Please enter minimum 8 characters.",
pattern: (environment as any)?.password?.errorMessage ? (environment as any)?.password.errorMessage :"Only letters, numbers,!@#%$&()-`.+,/\" are allowed",
},
validators: {
required: true,
minLength: (environment as any)?.password?.minLength?.password?.minLength ? (environment as any)?.password?.minLength?.password.minLength:8,
pattern: (environment as any)?.password?.minLength?.password?.regexPattern ? (environment as any)?.password?.minLength?.password.regexPattern :"^[a-zA-Z0-9!@#%$&()\\-`.+,/\"]*$",
minLength: (environment as any)?.password?.minLength ? (environment as any)?.password.minLength:8,
pattern: (environment as any)?.password?.regexPattern ? (environment as any)?.password.regexPattern :"^[a-zA-Z0-9!@#%$&()\\-`.+,/\"]*$",
}
}
]
Expand Down

0 comments on commit e4d0e15

Please sign in to comment.