summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh5p9sl <21267024+h5p9sl@users.noreply.github.com>2021-01-24 10:36:27 -0700
committerh5p9sl <21267024+h5p9sl@users.noreply.github.com>2021-01-24 10:36:27 -0700
commitf2814f2a8d49833f0800ad482be7973243622e8e (patch)
tree148c780995052d35b48d2592094af9eb4aaf1831
parent5032ee6dde5b33846570d9ea7af6b508755c708b (diff)
using wrong variable: 'user_name' instead of 'user_pass
-rw-r--r--register.php4
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';?>