mirror of
https://github.com/vrana/adminer.git
synced 2025-08-23 06:32:55 +02:00
Don't store invalid credentials to session (bug #376)
This commit is contained in:
@@ -109,7 +109,7 @@ function auth_error($exception = null) {
|
||||
}
|
||||
|
||||
function set_password($vendor, $server, $username, $password) {
|
||||
$_SESSION["pwds"][$vendor][$server][$username] = ($_COOKIE["adminer_key"]
|
||||
$_SESSION["pwds"][$vendor][$server][$username] = ($_COOKIE["adminer_key"] && is_string($password)
|
||||
? array(encrypt_string($password, $_COOKIE["adminer_key"]))
|
||||
: $password
|
||||
);
|
||||
|
Reference in New Issue
Block a user