mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 11:52:20 +01: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