mirror of
https://github.com/vrana/adminer.git
synced 2025-08-05 14:17:26 +02:00
Plugins: PHP 5 compatibility (fix #1125)
This commit is contained in:
@@ -12,7 +12,7 @@ class AdminerLoginOtp extends Adminer\Plugin {
|
||||
/**
|
||||
* @param string $secret decoded secret, e.g. base64_decode("SECRET")
|
||||
*/
|
||||
function __construct(string $secret) {
|
||||
function __construct($secret) {
|
||||
$this->secret = $secret;
|
||||
if ($_POST["auth"]) {
|
||||
$_SESSION["otp"] = (string) $_POST["auth"]["otp"];
|
||||
|
@@ -12,7 +12,7 @@ class AdminerLoginPasswordLess extends Adminer\Plugin {
|
||||
/** Set allowed password
|
||||
* @param string $password_hash result of password_hash()
|
||||
*/
|
||||
function __construct(string $password_hash) {
|
||||
function __construct($password_hash) {
|
||||
$this->password_hash = $password_hash;
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ class AdminerLoginTable extends Adminer\Plugin {
|
||||
protected $database;
|
||||
|
||||
/** Set database of login table */
|
||||
function __construct(string $database) {
|
||||
function __construct($database) {
|
||||
$this->database = $database;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user