diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-06-05 11:18:10 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-06-05 11:18:10 -0600 |
commit | 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b (patch) | |
tree | c1852447d06c062052def6fc89be2e2dece17c78 /signin.php | |
parent | 45acfc48b3dd80b945a1501edea9ad4faa700c0f (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.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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)) { |