diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index a9fb22f21b..d34f243f15 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -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; } diff --git a/core/templates/login.php b/core/templates/login.php index 989ea1eaad..3035d23da7 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -42,7 +42,7 @@ use OC\Core\Controller\LoginController; aria-label="t('Username or email')); ?>" value="" - autocomplete="on" autocapitalize="none" autocorrect="off" required> + autocomplete="" autocapitalize="none" autocorrect="off" required>

@@ -51,7 +51,7 @@ use OC\Core\Controller\LoginController; placeholder="t('Password')); ?>" aria-label="t('Password')); ?>" - autocomplete="on" autocapitalize="off" autocorrect="none" required> + autocomplete="" autocapitalize="none" autocorrect="off" required>