diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index b1707089..a03689d7 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -25,12 +25,16 @@ class Adminer { function connectSsl() { } - /** Get key used for permanent login - * @param bool - * @return string cryptic string which gets combined with password or false in case of an error - */ + /** + * Gets a private key used for permanent login. + * + * @param bool $create + * + * @return string|false Cryptic string which gets combined with password or false in case of an error. + * @throws \Random\RandomException + */ function permanentLogin($create = false) { - return password_file($create); + return get_private_key($create); } /** Return key used to group brute force attacks; behind a reverse proxy, you want to return the last part of X-Forwarded-For diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index 603bd470..ff17886c 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -1,4 +1,5 @@ \n"; echo "