]> git.p6c8.net - jirafeau_project.git/commitdiff
[BUGFIX] setup autocomplete field for passwords
authorJerome Jutteau <jerome@jutteau.fr>
Tue, 18 May 2021 06:59:15 +0000 (08:59 +0200)
committerJerome Jutteau <jerome@jutteau.fr>
Tue, 18 May 2021 07:01:37 +0000 (09:01 +0200)
closes #265

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
admin.php
f.php
index.php
install.php

index 7974ce6f5cb145c55e8b3fb3b516564c546be071..180b4f77d790f174b1c69f171c1522afa86ea6a3 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -91,7 +91,7 @@ if (php_sapi_name() == "cli") {
               <tr>
                   <td class = "field"><input type = "password"
                   name = "admin_password" id = "admin_password"
-                  size = "40" />
+                  size = "40" autocomplete = "current-password" />
                   </td>
               </tr>
               <tr class = "nav">
diff --git a/f.php b/f.php
index ed7d7827f534c4d187d9cc91cb93abc2d9657ae8..e2547d7d36f19324089434fb10303890362a66a2 100644 (file)
--- a/f.php
+++ b/f.php
@@ -142,7 +142,7 @@ if (!empty($link['key'])) {
              '<legend>' . t('PSW_PROTEC') .
              '</legend><table><tr><td>' .
              t('GIMME_PSW') . ' : ' .
-             '<input type = "password" name = "key" />' .
+             '<input type = "password" name = "key" autocomplete = "current-password"/>' .
              '</td></tr>' .
              '<tr><td>' .
              t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' .
index cf54193458915294e8dcd4ad27710855cbe90e49..fb5f1e5384a879a4e1ee6aa4cb9f041d96cf9199 100644 (file)
--- a/index.php
+++ b/index.php
@@ -75,7 +75,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
                 </tr><tr>
                     <td class = "field"><input type = "password"
                     name = "upload_password" id = "upload_password"
-                    size = "40" />
+                    size = "40" autocomplete = "current-password" />
                     </td>
                 </tr>
                 <tr class = "nav">
@@ -185,7 +185,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
         ?>
         <tr>
         <td><label for="input_key"><?php echo t('PSW') . ':'; ?></label></td>
-        <td><input type="password" name="key" id="input_key" /></td>
+        <td><input type="password" name="key" id="input_key" autocomplete = "new-password"/></td>
         </tr>
         <tr>
         <td><label for="select_time"><?php echo t('TIME_LIM') . ':'; ?></label></td>
index 2798e5a839e306e300729b333ded4476c399ad30..705f3d645559848524e7493c3612227a936367f9 100644 (file)
@@ -120,7 +120,7 @@ default:
        ><?php echo t('ADMIN_PSW') . ':';
     ?></label></td>
         <td class = "field"><input type = "password" name = "admin_password"
-        id = "admin_password" size = "40" /></td>
+        id = "admin_password" size = "40" autocomplete = "new-password"/></td>
         </tr>
         <tr class = "nav">
         <td></td>

patrick-canterino.de