A free, self-hostable news aggregator…
Use HTML autocomplete new-password (#1877)
Alexandre Alapetite0513ba8d9f43
diff --git a/app/install.php b/app/install.phpindex 870c93908..c30f8d583 100644--- a/app/install.php+++ b/app/install.php@@ -537,7 +537,7 @@ function printStep2() {<div class="form-group"><label class="group-name" for="default_user"><?php echo _t('install.default_user'); ?></label><div class="group-controls">- <input type="text" id="default_user" name="default_user" required="required" size="16" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" value="<?php echo isset($_SESSION['default_user']) ? $_SESSION['default_user'] : ''; ?>" placeholder="<?php echo httpAuthUser() == '' ? 'alice' : httpAuthUser(); ?>" tabindex="3" />+ <input type="text" id="default_user" name="default_user" autocomplete="username" required="required" size="16" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" value="<?php echo isset($_SESSION['default_user']) ? $_SESSION['default_user'] : ''; ?>" placeholder="<?php echo httpAuthUser() == '' ? 'alice' : httpAuthUser(); ?>" tabindex="3" /></div></div>diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtmlindex 99be6059c..01d1d4736 100644--- a/app/views/auth/formLogin.phtml+++ b/app/views/auth/formLogin.phtml@@ -9,7 +9,7 @@<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" /><div><label for="username"><?php echo _t('gen.auth.username'); ?></label>- <input type="text" id="username" name="username" size="16" required="required" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" autofocus="autofocus" />+ <input type="text" id="username" name="username" autocomplete="username" size="16" required="required" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" autofocus="autofocus" /></div><div><label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtmlindex 23bda25ce..19e11ef76 100644--- a/app/views/auth/register.phtml+++ b/app/views/auth/register.phtml@@ -11,7 +11,7 @@<div><label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'), '<br />', _i('help'), ' ', _t('gen.auth.password.format'); ?></label><div class="stick">- <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="off" pattern=".{7,}" />+ <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="new-password" pattern=".{7,}" /><a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a></div><noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtmlindex 5cd59d298..823cf1b2f 100644--- a/app/views/feed/add.phtml+++ b/app/views/feed/add.phtml@@ -73,7 +73,7 @@<label class="group-name" for="http_pass"><?php echo _t('sub.feed.auth.password'); ?></label><div class="group-controls">- <input type="password" name="http_pass" id="http_pass" class="extend" value="<?php echo $auth['password']; ?>" autocomplete="off" />+ <input type="password" name="http_pass" id="http_pass" class="extend" value="<?php echo $auth['password']; ?>" autocomplete="new-password" /></div><div class="group-controls">diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtmlindex 01c90369c..88a38ea58 100644--- a/app/views/helpers/feed/update.phtml+++ b/app/views/helpers/feed/update.phtml@@ -158,7 +158,7 @@<label class="group-name" for="http_pass_feed<?php echo $this->feed->id(); ?>"><?php echo _t('sub.feed.auth.password'); ?></label><div class="group-controls">- <input type="password" name="http_pass_feed<?php echo $this->feed->id(); ?>" id="http_pass_feed<?php echo $this->feed->id(); ?>" class="extend" value="<?php echo $auth['password']; ?>" autocomplete="off" />+ <input type="password" name="http_pass_feed<?php echo $this->feed->id(); ?>" id="http_pass_feed<?php echo $this->feed->id(); ?>" class="extend" value="<?php echo $auth['password']; ?>" autocomplete="new-password" /></div></div>diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtmlindex 26af0bd7c..41dd8a7df 100644--- a/app/views/subscription/index.phtml+++ b/app/views/subscription/index.phtml@@ -40,7 +40,7 @@<input type="text" name="http_user" id="http_user_feed" value=" " autocomplete="off" placeholder="<?php echo _t('sub.feed.auth.username'); ?>" /></li><li class="input">- <input type="password" name="http_pass" id="http_pass_feed" autocomplete="off" placeholder="<?php echo _t('sub.feed.auth.password'); ?>" />+ <input type="password" name="http_pass" id="http_pass_feed" autocomplete="new-password" placeholder="<?php echo _t('sub.feed.auth.password'); ?>" /></li></ul></div>diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtmlindex 26838fcc1..9d457f7a5 100644--- a/app/views/user/manage.phtml+++ b/app/views/user/manage.phtml@@ -66,7 +66,7 @@<label class="group-name" for="newPasswordPlain"><?php echo _t('admin.user.password_form'); ?></label><div class="group-controls"><div class="stick">- <input type="password" id="newPasswordPlain" name="newPasswordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>+ <input type="password" id="newPasswordPlain" name="newPasswordPlain" autocomplete="new-password" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/><a class="btn toggle-password" data-toggle="newPasswordPlain"><?php echo _i('key'); ?></a></div><?php echo _i('help'); ?> <?php echo _t('conf.profile.password_format'); ?>diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtmlindex 7a63c0941..83140376d 100644--- a/app/views/user/profile.phtml+++ b/app/views/user/profile.phtml@@ -22,7 +22,7 @@<label class="group-name" for="newPasswordPlain"><?php echo _t('conf.profile.password_form'); ?></label><div class="group-controls"><div class="stick">- <input type="password" id="newPasswordPlain" name="newPasswordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>+ <input type="password" id="newPasswordPlain" name="newPasswordPlain" autocomplete="new-password" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/><a class="btn toggle-password" data-toggle="newPasswordPlain"><?php echo _i('key'); ?></a></div><?php echo _i('help'); ?> <?php echo _t('conf.profile.password_format'); ?>@@ -35,7 +35,7 @@<label class="group-name" for="apiPasswordPlain"><?php echo _t('conf.profile.password_api'); ?></label><div class="group-controls"><div class="stick">- <input type="password" id="apiPasswordPlain" name="apiPasswordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/>+ <input type="password" id="apiPasswordPlain" name="apiPasswordPlain" autocomplete="new-password" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/><a class="btn toggle-password" data-toggle="apiPasswordPlain"><?php echo _i('key'); ?></a></div><?php echo _i('help'); ?> <kbd><a href="../api/"><?php echo Minz_Url::display('/api/', 'html', true); ?></a></kbd>