summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-06-05 11:18:10 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-06-05 11:18:10 -0600
commit24efe49bc2b545e3a3e46d7d6f2bd1166163e52b (patch)
treec1852447d06c062052def6fc89be2e2dece17c78 /register.php
parent45acfc48b3dd80b945a1501edea9ad4faa700c0f (diff)
Move object related functions into their classes.
Some of the pages are still broken from this commit, but I plan to either rewrite or ignore them.
Diffstat (limited to 'register.php')
-rw-r--r--register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/register.php b/register.php
index 4c42610..9eb3347 100644
--- a/register.php
+++ b/register.php
@@ -20,7 +20,7 @@
<br>
<?php
-include_once './includes/functions_user.php';
+include_once './includes/model/User.php';
include_once './includes/error.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
@@ -70,7 +70,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
trigger_error($errstr);
} else {
$pass_hash = password_hash($user_pass, PASSWORD_DEFAULT);
- register_user($user_name, $pass_hash);
+ User::register($user_name, $pass_hash);
echo '<p class="success">Account successfully registered! You can now <a href="signin.php">sign in</a></p>';
}
}