1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 00:27:32 +02:00

Correction de problèmes mineurs

This commit is contained in:
galaxyoyo
2019-09-08 22:54:57 +02:00
parent 1bf0316f2b
commit 722fad4e6f
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class NewUser
ensure(filter_var($this->email, FILTER_VALIDATE_EMAIL), "L'adresse e-mail entrée est invalide.");
$this->email = strtolower($this->email);
ensure(userExists($this->email), "Un compte existe déjà avec cette adresse e-mail.");
ensure(!userExists($this->email), "Un compte existe déjà avec cette adresse e-mail.");
ensure(strlen($this->password) >= 8, "Le mot de passe doit comporter au moins 8 caractères.");
ensure($this->password == $this->confirm_password, "Les deux mots de passe sont différents.");
ensure($this->surname != "", "Le nom de famille est obligatoire.");