From 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b Mon Sep 17 00:00:00 2001
From: cflip <36554078+cflip@users.noreply.github.com>
Date: Sat, 5 Jun 2021 11:18:10 -0600
Subject: 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.
---
signin.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'signin.php')
diff --git a/signin.php b/signin.php
index c38845d..0eb492d 100644
--- a/signin.php
+++ b/signin.php
@@ -15,7 +15,6 @@
-
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 create a new account?');
} else {
if (!password_verify($user_pass, $user->password)) {
--
cgit v1.2.3