r57955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57954‎ | r57955 | r57956 >
Date:19:48, 20 October 2009
Author:catrope
Status:ok
Tags:
Comment:
Whitespace cleanup for r57877
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -643,14 +643,13 @@
644644 function getPasswordValidity( $password ) {
645645 global $wgMinimalPasswordLength, $wgContLang;
646646
647 - if(!$this->isValidPassword( $password )) {
 647+ if ( !$this->isValidPassword( $password ) ) {
648648 if( strlen( $password ) < $wgMinimalPasswordLength ) {
649649 return 'passwordtooshort';
650 - } elseif( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) {
 650+ } elseif ( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) {
651651 return 'password-name-match';
652652 }
653 - }
654 - else {
 653+ } else {
655654 return true;
656655 }
657656 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57877* function isValidPassword modified to return boolean(true/false)...fenzik03:01, 19 October 2009

Status & tagging log