summaryrefslogtreecommitdiff
path: root/signin.php
diff options
context:
space:
mode:
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)) {