$result = $this->sendConfirmationMail( $type );
if ( $result->isGood() ) {
# Say the the caller that a confirmation mail has been sent
- $status->value = 'eauth';
+ $result->value = 'eauth';
}
} else {
$result = Status::newGood( true );
* Reset all options to the site defaults
*/
public function resetOptions() {
+ $this->load();
+
$this->mOptions = self::getDefaultOptions();
+ $this->mOptionsLoaded = true;
}
/**
} elseif ( $type == ':B:' ) {
# Salted
list( $salt, $realHash ) = explode( ':', substr( $hash, 3 ), 2 );
- return md5( $salt.'-'.md5( $password ) ) == $realHash;
+ return md5( $salt.'-'.md5( $password ) ) === $realHash;
} else {
# Old-style
return self::oldCrypt( $password, $userId ) === $hash;