mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-27 01:18:39 +02:00
Diverses corrections
This commit is contained in:
@ -61,7 +61,7 @@ class NewUser
|
||||
ensure(preg_match("#^[0-9]{4}[0-9]?$#", $this->postal_code) && intval($this->postal_code) >= 01000 && intval($this->postal_code) <= 95999, "Le code postal est invalide.");
|
||||
if ($this->country == "")
|
||||
$this->country = "France";
|
||||
ensure(strlen($this->phone_number) >= 10, "Le numéro de téléphone est invalide.");
|
||||
ensure(strlen($this->phone_number) >= 10 && strlen($this->phone_number) <= 20, "Le numéro de téléphone est invalide.");
|
||||
$this->role = Role::fromName(strtoupper($this->role));
|
||||
|
||||
if ($this->role == Role::PARTICIPANT) {
|
||||
|
Reference in New Issue
Block a user