diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-01-24 13:21:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 13:21:18 -0700 |
commit | b08ca01d49b3683b62d2d9f2f6fefc1a73da71a0 (patch) | |
tree | 19cc321932c32fa79b8a28df3941bdbb4d68af46 /register.php | |
parent | 2d39a708bdd88dc1601badbc2f58843b757996e9 (diff) | |
parent | f78ad3e81c2bf8dca6b491ee8f09b99d40903d77 (diff) |
Merge pull request #3 from cflip/bugfix
A couple of bug fixes
Diffstat (limited to 'register.php')
-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';?> |