Skip to content

Commit

Permalink
Don't store invalid credentials to session (bug vrana#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 30, 2014
1 parent 125b519 commit 6acf188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/auth.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Adminer 4.0.3-dev:
MongoDB: insert, truncate, indexes
SimpleDB, MongoDB: insert more fields at once
SQLite: Fix creating table and altering primary key, bug since Adminer 4.0.0
Don't store invalid credentials to session, bug since Adminer 4.0.0
Norweigan translation

Adminer 4.0.2 (released 2014-01-11):
Expand Down

0 comments on commit 6acf188

Please sign in to comment.