[BUGFIX] setup autocomplete field for passwords

closes #265

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
Jerome Jutteau 2021-05-18 08:59:15 +02:00
parent 2bc76d8bae
commit 8665ea5fc1
4 changed files with 5 additions and 5 deletions

View File

@ -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">

2
f.php
View File

@ -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>.' .

View File

@ -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>

View 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>