Skip to content

Commit

Permalink
feat: allow more special characters in password
Browse files Browse the repository at this point in the history
Fix #927
  • Loading branch information
ptitFicus committed Jan 17, 2025
1 parent 3b7a1fa commit aebaa4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/fr/maif/izanami/models/User.scala
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ object Rights {
}

object User {
val PASSWORD_REGEXP: Regex = "^[a-zA-Z0-9_]{8,50}$".r
val PASSWORD_REGEXP: Regex = "^[a-zA-Z0-9_\\-+=;: ,?!$%'\"^@*<>&|#/\\\\()\\[\\]{}]{8,50}$".r

implicit val rightLevelReads: Reads[RightLevel] = { json =>
json
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/utils/patterns.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const PASSWORD_REGEXP = /^[a-zA-Z0-9_]{8,100}$/;
export const PASSWORD_REGEXP = /^[a-zA-Z0-9_\-+=;:,?!$%'"^@*<>&|#\/\\()\[\]{}]{8,100}$/;
export const USERNAME_REGEXP = /^[a-zA-Z0-9_-]+$/;
export const FEATURE_NAME_REGEXP = /^[ a-zA-Z0-9_\-:]+$/;
export const TENANT_NAME_REGEXP = /^[a-z0-9-]+$/;
Expand Down

0 comments on commit aebaa4d

Please sign in to comment.