Merged in fix/password-remove-hash (pull request #2487)
Remove # from allowed characters in password field * Remove # from allowed characters in password field * Fixed tests * Fixed tests
This commit is contained in:
@@ -7,7 +7,6 @@ const testCases = [
|
||||
// Valid passwords
|
||||
{ password: "Password123!", description: "standard valid password" },
|
||||
{ password: "ValidPass1@", description: "valid with @" },
|
||||
{ password: "TestPass9#", description: "valid with #" },
|
||||
|
||||
// Edge cases for length
|
||||
{ password: "Pass123!", description: "8 characters (too short for both)" },
|
||||
|
||||
@@ -24,7 +24,7 @@ export const passwordValidators = {
|
||||
},
|
||||
allowedCharacters: {
|
||||
matcher: (password: string) =>
|
||||
/^[A-Za-zåäöæøüßÅÄÖÆØÜ0-9&!?()@#$%^+=_\*\-]+$/.test(password),
|
||||
/^[A-Za-zåäöæøüßÅÄÖÆØÜ0-9&!?()@$%^+=_\*\-]+$/.test(password),
|
||||
message: "Only allowed characters",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user