Accept accent for firstname & lastname in register
This commit is contained in:
parent
758ee3b960
commit
5f02e31507
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ public class MailConfirmation extends FormResponse{
|
||||||
}
|
}
|
||||||
|
|
||||||
validator("pseudo", "[a-zA-Z0-9&|!?{}\\[\\]%/*\\-+=:;,_#@ ]{3,100}");
|
validator("pseudo", "[a-zA-Z0-9&|!?{}\\[\\]%/*\\-+=:;,_#@ ]{3,100}");
|
||||||
validator("firstname", "^(?>[a-zA-Z]+ ?)+$");
|
validator("firstname", "^(?>[A-Za-zÀ-ÖØ-öø-ÿ]+ ?)+$");
|
||||||
validator("lastname", "^(?>[a-zA-Z]+ ?)+$");
|
validator("lastname", "^(?>[A-Za-zÀ-ÖØ-öø-ÿ]+ ?)+$");
|
||||||
}
|
}
|
||||||
|
|
||||||
@RouteDoc(path = "/confirmation", responseCode = 200, responseDescription = "L'utilisateur est inscrit")
|
@RouteDoc(path = "/confirmation", responseCode = 200, responseDescription = "L'utilisateur est inscrit")
|
||||||
|
|
Loading…
Add table
Reference in a new issue