mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
added possibility to disable autocomplete in login form
Signed-off-by: Rayn0r <Andre.Weidemann@web.de>
This commit is contained in:
parent
13abee2836
commit
85eb43baff
2 changed files with 10 additions and 2 deletions
|
|
@ -171,6 +171,14 @@ class LoginController extends Controller {
|
|||
$parameters['loginName'] = '';
|
||||
$parameters['user_autofocus'] = true;
|
||||
}
|
||||
|
||||
$autocomplete = $this->config->getSystemValue('login_form_autocomplete', true);
|
||||
if ($autocomplete){
|
||||
$parameters['login_form_autocomplete'] = 'on';
|
||||
} else {
|
||||
$parameters['login_form_autocomplete'] = 'off';
|
||||
}
|
||||
|
||||
if (!empty($redirect_url)) {
|
||||
$parameters['redirect_url'] = $redirect_url;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ use OC\Core\Controller\LoginController;
|
|||
aria-label="<?php p($l->t('Username or email')); ?>"
|
||||
value="<?php p($_['loginName']); ?>"
|
||||
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
||||
autocomplete="on" autocapitalize="none" autocorrect="off" required>
|
||||
autocomplete="<?php p($_['login_form_autocomplete']); ?>" autocapitalize="none" autocorrect="off" required>
|
||||
<label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
|
||||
</p>
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ use OC\Core\Controller\LoginController;
|
|||
placeholder="<?php p($l->t('Password')); ?>"
|
||||
aria-label="<?php p($l->t('Password')); ?>"
|
||||
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
||||
autocomplete="on" autocapitalize="off" autocorrect="none" required>
|
||||
autocomplete="<?php p($_['login_form_autocomplete']); ?>" autocapitalize="none" autocorrect="off" required>
|
||||
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue