diff --git a/adminer/elastic.php b/adminer/elastic.php index 62e126f1..610882a3 100644 --- a/adminer/elastic.php +++ b/adminer/elastic.php @@ -2,8 +2,13 @@ // To create Adminer just for Elasticsearch, run `../compile.php elastic`. function adminer_object() { + include_once "../plugins/plugin.php"; + include_once "../plugins/login-password-less.php"; include_once "../plugins/drivers/elastic.php"; - return new Adminer\Adminer; + return new AdminerPlugin(array( + // TODO: inline the result of password_hash() so that the password is not visible in source codes + new AdminerLoginPasswordLess(password_hash("YOUR_PASSWORD_HERE", PASSWORD_DEFAULT)), + )); } include "./index.php";