Disabled auto-completion for password in Special:Preferences. Should resolve the...
authorMarco Schuster <harddisk@users.mediawiki.org>
Mon, 17 Nov 2008 21:28:42 +0000 (21:28 +0000)
committerMarco Schuster <harddisk@users.mediawiki.org>
Mon, 17 Nov 2008 21:28:42 +0000 (21:28 +0000)
includes/specials/SpecialPreferences.php

index e0e61f3..ef45939 100644 (file)
@@ -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;