Skip to content

Commit

Permalink
GH-150 Reuse existing utility to check for cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Feb 9, 2021
1 parent f7e3e8e commit 7dc25c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
} else {
$Search['error'] = 1;
}
} else if (!empty($_COOKIE[$sessionCookieKey])) {
} else if (Session\Utils\Cookie\hasSessionCookie()) {
$loginAttemptResult = Session\Input\CookieLogin\handleCookieLogin([]);

if ($loginAttemptResult['isSuccess']) {
Expand Down

0 comments on commit 7dc25c7

Please sign in to comment.