From 97a0e76c1f060d874390262eb35fe5e60c8544d4 Mon Sep 17 00:00:00 2001 From: Marco Schuster Date: Mon, 17 Nov 2008 21:28:42 +0000 Subject: [PATCH] Disabled auto-completion for password in Special:Preferences. Should resolve the behaviour described at http://lists.wikimedia.org/pipermail/wikitech-l/2008-November/040067.html --- includes/specials/SpecialPreferences.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index e0e61f37a4..ef45939ca7 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -759,20 +759,20 @@ class PreferencesForm { $this->tableRow( Xml::element( 'h2', null, wfMsg( 'changepassword' ) ) ) . $this->tableRow( Xml::label( wfMsg( 'oldpassword' ), 'wpOldpass' ), - Xml::password( 'wpOldpass', 25, $this->mOldpass, array( 'id' => 'wpOldpass' ) ) + Xml::password( 'wpOldpass', 25, $this->mOldpass, array( 'id' => 'wpOldpass', 'autocomplete' => 'off' ) ) ) . $this->tableRow( Xml::label( wfMsg( 'newpassword' ), 'wpNewpass' ), - Xml::password( 'wpNewpass', 25, $this->mNewpass, array( 'id' => 'wpNewpass' ) ) + Xml::password( 'wpNewpass', 25, $this->mNewpass, array( 'id' => 'wpNewpass', 'autocomplete' => 'off' ) ) ) . $this->tableRow( Xml::label( wfMsg( 'retypenew' ), 'wpRetypePass' ), - Xml::password( 'wpRetypePass', 25, $this->mRetypePass, array( 'id' => 'wpRetypePass' ) ) + Xml::password( 'wpRetypePass', 25, $this->mRetypePass, array( 'id' => 'wpRetypePass', 'autocomplete' => 'off' ) ) ) ); if( $wgCookieExpiration > 0 ){ $wgOut->addHTML( - $this->tableRow( $this->getToggle( "rememberpassword" ) ) + $this->tableRow( $this->getToggle( "rememberpassword" ) ) ); } else { $this->mUsedToggles['rememberpassword'] = true; -- 2.20.1