Project

General

Profile

Bug #3315 » 3315.patch

krileon, 05 March 2012 17:13

View differences:

components/com_comprofiler/comprofiler.php
$user = CBuser::getUserDataInstance( (int) $user_id );
$user->password = $newpass;
if ( ! $user->storePassword() ) {
die("SQL error" . $user->getError());
cbRedirect( cbSef("index.php?option=$option&task=lostPassword".($Itemid ? "&Itemid=". (int) $Itemid : ""), false ), $user->getError(), 'error' );
return;
}
cbRedirect( cbSef("index.php?option=$option&task=done".($Itemid ? "&Itemid=". (int) $Itemid : ""), false ), sprintf( _UE_NEWPASS_SENT, htmlspecialchars( $confirmEmail ) ) );
} else {
(1-1/2)