[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] [web-pecl] morrisonlevi-patch-1: Add autocomplete and required attributes for login form
From:       Levi Morrison via GitHub <noreply () php ! net>
Date:       2022-12-06 16:59:34
Message-ID: meI3gmMCUnF37Ga48aTqPKkjymiIBITGAZ113y1RmY () main ! php ! net
[Download RAW message or body]

Author: Levi Morrison (morrisonlevi)
Committer: GitHub (web-flow)
Pusher: morrisonlevi
Date: 2022-12-06T09:48:16-07:00

Commit: https://github.com/php/web-pecl/commit/c10ae83578c97eefa394d32a37579ab296b738a6
 Raw diff: https://github.com/php/web-pecl/commit/c10ae83578c97eefa394d32a37579ab296b738a6.diff


Add autocomplete and required attributes for login form

See the MDN for information on autocomplete:
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

Changed paths:
  M  src/Auth.php


Diff:

diff --git a/src/Auth.php b/src/Auth.php
index dbbe8fef..7ed90d5a 100644
--- a/src/Auth.php
+++ b/src/Auth.php
@@ -296,12 +296,12 @@ public function reject($message = null)
         print '  <th class="form-label_left">';
         print 'Use<span class="accesskey">r</span>name:</th>' . "\n";
         print '  <td class="form-input">';
-        print '<input size="20" name="PECL_USER" accesskey="r" /></td>' . "\n";
+        print '<input size="20" name="PECL_USER" accesskey="r" \
autocomplete="username" required="" /></td>' . "\n";  print " </tr>\n";
         print " <tr>\n";
         print '  <th class="form-label_left">Password:</th>' . "\n";
         print '  <td class="form-input">';
-        print '<input size="20" name="PECL_PW" type="password" /></td>' . "\n";
+        print '<input size="20" name="PECL_PW" type="password" \
autocomplete="current-password" required="" /></td>' . "\n";  print " </tr>\n";
         print " <tr>\n";
         print '  <th class="form-label_left">&nbsp;</th>' . "\n";

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic