]> git.joonet.de Git - adminer.git/commitdiff
Add autocomplete attributes to login form
authorJakub Vrana <jakub@vrana.cz>
Wed, 12 Dec 2018 15:13:14 +0000 (16:13 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 12 Dec 2018 15:13:14 +0000 (16:13 +0100)
adminer/include/adminer.inc.php
adminer/include/version.inc.php
changes.txt
editor/include/adminer.inc.php

index 81a90004e1f6a937c237828dbf8eb0f0c4fa1b1c..992315dbf6f0135f506b4c7e1eb7415e5519f309 100644 (file)
@@ -121,8 +121,8 @@ class Adminer {
                echo "<table cellspacing='0' class='layout'>\n";
                echo $this->loginFormField('driver', '<tr><th>' . lang('System') . '<td>', html_select("auth[driver]", $drivers, DRIVER) . "\n");
                echo $this->loginFormField('server', '<tr><th>' . lang('Server') . '<td>', '<input name="auth[server]" value="' . h(SERVER) . '" title="hostname[:port]" placeholder="localhost" autocapitalize="off">' . "\n");
-               echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocapitalize="off">' . script("focus(qs('#username'));"));
-               echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]">' . "\n");
+               echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocomplete="username" autocapitalize="off">' . script("focus(qs('#username'));"));
+               echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]" autocomplete="current-password">' . "\n");
                echo $this->loginFormField('db', '<tr><th>' . lang('Database') . '<td>', '<input name="auth[db]" value="' . h($_GET["db"]) . '" autocapitalize="off">' . "\n");
                echo "</table>\n";
                echo "<p><input type='submit' value='" . lang('Login') . "'>\n";
index 3739688ab395d3ac844337af18aca5ccefd5b370..1a3fc8df4fbf2b08ccdfd74a52108030f1b5d999 100644 (file)
@@ -1,2 +1,2 @@
 <?php
-$VERSION = "4.7.0";
+$VERSION = "4.7.1-dev";
index 39b57ee54a07b7588203c7d574f8e622167f3909..7a955ca254e2fbe678b85572a3666bfa245498ec 100644 (file)
@@ -1,3 +1,6 @@
+Adminer 4.7.1-dev:
+Add autocomplete attributes to login form
+
 Adminer 4.7.0 (released 2018-11-24):
 Simplify storing executed SQL queries to bookmarks
 Warn when using password with leading or trailing spaces
index d1ec53037d839a8053fd86312d20952a94371545..2912534573540685e9b0421ec27a8ef94fb0edf4 100644 (file)
@@ -72,8 +72,8 @@ class Adminer {
 
        function loginForm() {
                echo "<table cellspacing='0' class='layout'>\n";
-               echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input type="hidden" name="auth[driver]" value="server"><input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocapitalize="off">' . script("focus(qs('#username'));"));
-               echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]">' . "\n");
+               echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input type="hidden" name="auth[driver]" value="server"><input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocomplete="username" autocapitalize="off">' . script("focus(qs('#username'));"));
+               echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]" autocomplete="current-password">' . "\n");
                echo "</table>\n";
                echo "<p><input type='submit' value='" . lang('Login') . "'>\n";
                echo checkbox("auth[permanent]", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";