summaryrefslogtreecommitdiff
path: root/Core/Functions
diff options
context:
space:
mode:
authorDebulois <quentin@debulois.fr>2022-04-19 12:27:07 +0200
committerDebulois <quentin@debulois.fr>2022-04-19 12:27:07 +0200
commit956f0515a728cdd2b409b3a34924bfd3fcd81a32 (patch)
tree7c98b2d5f479ab7466673c7de6caab309c8f8804 /Core/Functions
parent8dea7146e3860bd5b98d68a610b53cf888ede0e9 (diff)
Correction oubli RegEx et supprosion d'une méthode non utilisée
Diffstat (limited to 'Core/Functions')
-rw-r--r--Core/Functions/func_register.php2
1 files changed, 1 insertions, 1 deletions
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)