Преглед изворни кода

Add single quote to Email RegEx

For our emails we use name.surname format and there were situations when a user had a single quote in his name/surname.
pandaholic пре 6 година
родитељ
комит
04d439cfd5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      server/src/main/resources/password/pwm/AppProperty.properties

+ 1 - 1
server/src/main/resources/password/pwm/AppProperty.properties

@@ -89,7 +89,7 @@ download.filename.auditRecords.csv=AuditRecords.csv
 download.filename.ldapPermission.csv=LDAPPermissionRecommendations.csv
 download.filename.userDebug.json=userDebug.json
 forgottenPassword.token.autoSelectSingleDestination=false
-form.email.regexTest=^[_+a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$
+form.email.regexTest=^[_+a-zA-Z0-9-']+(\\.[_a-zA-Z0-9-']+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$
 healthCheck.enabled=true
 healthCheck.nominalCheckIntervalSeconds=60
 healthCheck.minimumCheckIntervalSeconds=10