diff options
-rw-r--r-- | register.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/register.php b/register.php index a318170..efa4486 100644 --- a/register.php +++ b/register.php @@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $user_pass = $_POST['user_pass']; $pass_check = $_POST['user_pass_check']; - if (preg_match("/^[a-zA-Z0-9\W]*$/", $user_name) === false) { + if (preg_match("/^[a-zA-Z0-9\W]*$/", $user_pass) === false) { $errors[] = "Password contains invalid characters!"; } @@ -104,4 +104,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { </section> -<?php include_once 'footer.php';?>
\ No newline at end of file +<?php include_once 'footer.php';?> |