diff --git a/users.php b/users.php index 53b40c6..178ed1a 100644 --- a/users.php +++ b/users.php @@ -72,7 +72,7 @@ class users throw new Exception (dgettext("domframework", "Invalid email provided : too short"), 500); - if (strpos ($lastname, ":") !== false) + if (strpos ($email, ":") !== false) throw new Exception (dgettext("domframework", "Invalid email provided : colon forbidden"), 500);