Diff of /adminer/include/auth.inc.php [40ad84] .. [6591d4]  Maximize  Restore

Switch to unified view

a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php
...
...
65
    } elseif (isset($_GET["username"])) {
65
    } elseif (isset($_GET["username"])) {
66
        if (($_COOKIE[$session_name] || $_GET[$session_name]) && !$token) {
66
        if (($_COOKIE[$session_name] || $_GET[$session_name]) && !$token) {
67
            $error = lang('Session expired, please login again.');
67
            $error = lang('Session expired, please login again.');
68
        } else {
68
        } else {
69
            $password = &get_session("pwds");
69
            $password = &get_session("pwds");
70
          if (isset($password)) {
70
          if ($password !== null) {
71
                $error = h($exception ? $exception->getMessage() : (is_string($connection) ? $connection : lang('Invalid credentials.')));
71
                $error = h($exception ? $exception->getMessage() : (is_string($connection) ? $connection : lang('Invalid credentials.')));
72
                $password = null;
72
                $password = null;
73
            }
73
            }
74
        }
74
        }
75
    }
75
    }