summaryrefslogtreecommitdiff
path: root/signin.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 /signin.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 'signin.php')
-rw-r--r--signin.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/signin.php b/signin.php
index c38845d..0eb492d 100644
--- a/signin.php
+++ b/signin.php
@@ -15,7 +15,6 @@
<input type="password" name="user_pass"><br>
<input type="submit" name="submit">
</form>
-
<?php
include_once 'includes/error.php';
@@ -51,9 +50,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
trigger_error($errstr);
} else {
$user = new User();
- $result = $user->get_by_name($user_name);
+ $user->get_by_name($user_name);
- if (!$result) {
+ if (!$user->has_value()) {
trigger_error('There is no user with that name. Did you mean to <a href="register.php">create a new account?</a>');
} else {
if (!password_verify($user_pass, $user->password)) {