From 06cee7a6dd939a039e80dde4314a1a0657632511 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 27 Sep 2016 08:30:32 +0200 Subject: [PATCH] Add autocomplete off --- main/auth/inscription.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index 814794c742..eeb086ca4b 100755 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -220,7 +220,15 @@ if ($user_already_registered_show_terms === false) { // USERNAME if (api_get_setting('login_is_email') != 'true') { - $form->addElement('text', 'username', get_lang('UserName'), array('id' => 'username', 'size' => USERNAME_MAX_LENGTH)); + $form->addText( + 'username', + get_lang('UserName'), + array( + 'id' => 'username', + 'size' => USERNAME_MAX_LENGTH, + 'autocomplete' => 'off' + ) + ); $form->applyFilter('username', 'trim'); $form->addRule('username', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('username', sprintf(get_lang('UsernameMaxXCharacters'), (string)USERNAME_MAX_LENGTH), 'maxlength', USERNAME_MAX_LENGTH); @@ -237,7 +245,7 @@ if ($user_already_registered_show_terms === false) { ); $checkPass = api_get_setting('allow_strength_pass_checker'); - if ($checkPass == 'true') { + if ($checkPass === 'true') { $form->addElement('label', null, '
'); }