Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A way to allow direct login to adminer
$_GET["username"] = "";
$_GET["db"] = "database";
function adminer_object() {
class AdminerAutoLogin extends Adminer {
function credentials() {
return array("", "username", "password");
function login($login, $password) {
return true;
return new AdminerAutoLogin;

This comment has been minimized.

Copy link

@Dreller Dreller commented Apr 5, 2020

Thank you very much! It does the trick perfectly for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment