We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e9e0b commit 51a2a08Copy full SHA for 51a2a08
includes/login.inc.php
@@ -109,7 +109,7 @@ function authCookie()
109
110
if (isset($_POST['username'], $_POST['password'])) {
111
// Login form submitted; correctly?
112
- if ($config['login'][$_POST['username']]) {
+ if (isset($config['login'][$_POST['username']])) {
113
$userData = $config['login'][$_POST['username']];
114
if ($_POST['password'] === $userData['password']) {
115
// Correct username & password. Set cookie and redirect to home page
0 commit comments