From 956f0515a728cdd2b409b3a34924bfd3fcd81a32 Mon Sep 17 00:00:00 2001 From: Debulois Date: Tue, 19 Apr 2022 12:27:07 +0200 Subject: Correction oubli RegEx et supprosion d'une méthode non utilisée MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Functions/func_register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Core') diff --git a/Core/Functions/func_register.php b/Core/Functions/func_register.php index 1a94bc1..d0b7ba2 100644 --- a/Core/Functions/func_register.php +++ b/Core/Functions/func_register.php @@ -11,7 +11,7 @@ function register($email, $password, $userStatus) { $regNumb = "/[0-9]/"; $regUpper = "/[A-Z]/"; $regSpecial = "/[`!@#$%^&*()_+\-=\[\]{};':\"\\|,.<>\/?~µ°€£]/"; - $regEmail = "/^[a-z0-9_-]+@[a-z0-9-]+\.[a-z]/"; + $regEmail = "/^[a-z0-9._-]+@[a-z0-9-]+\.[a-z]/"; if ((strlen($password) >= 8) && preg_match($regNumb, $password) -- cgit v1.2.3