From 372a0e22a7bbac63348a3919ddd763ecd334e9d7 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 24 Oct 2013 22:40:05 -0700 Subject: [PATCH] Fix saving permanent login --- adminer/include/auth.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index b64b3ac2..c208a94d 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -25,7 +25,7 @@ if ($auth) { $db = $auth["db"]; set_password($driver, $server, $username, $password); $_SESSION["db"][$driver][$server][$username][$db] = true; - if ($permanent) { + if ($auth["permanent"]) { $key = base64_encode($driver) . "-" . base64_encode($server) . "-" . base64_encode($username) . "-" . base64_encode($db); $private = $adminer->permanentLogin(true); $permanent[$key] = "$key:" . base64_encode($private ? encrypt_string($password, $private) : "");