diff --git a/js/functions.js b/js/functions.js index e5d836322..b5995f0f5 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1726,5 +1726,12 @@ $(document).ready(function(){ return false; }); $('#sqlquery').focus(); + if ($('#input_username')) { + if ($('#input_username').val() == '') { + $('#input_username').focus(); + } else { + $('#input_password').focus(); + } + } }); diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index b40f7a2ed..a9644557c 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -172,14 +172,14 @@ function PMA_auth() ?> - + - +?> + @@ -312,22 +312,6 @@ if (top != self) { } ?> -