summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
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>';
}
}