diff --git a/frontend/src/pages/api/auth/confirm-password-reset.ts b/frontend/src/pages/api/auth/confirm-password-reset.ts index 924de7d..a6f112f 100644 --- a/frontend/src/pages/api/auth/confirm-password-reset.ts +++ b/frontend/src/pages/api/auth/confirm-password-reset.ts @@ -4,7 +4,7 @@ const PB_POCKETBASE_URL = import.meta.env.PB_POCKETBASE_URL || 'http://localhost const PASSWORD_MIN_LENGTH = 8; const PASSWORD_MAX_LENGTH = 12; -const PASSWORD_REGEX = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+$/; +const PASSWORD_REGEX = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d_!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+$/; function validatePassword(password: string): { valid: boolean; error?: string } { if (!password || password.length < PASSWORD_MIN_LENGTH) {