Bug #3341 » 3341-pt3.patch
| administrator/components/com_comprofiler/controller/controller.default.php | ||
|---|---|---|
|
if( isset( $ueConfig['emailpass'] ) && ( $ueConfig['emailpass'] == "1" ) && ( $row->approved == 0 ) ) {
|
||
|
// if we need to generate a random password to be emailed with confirmation, set new random password only at first approval:
|
||
|
$row->setRandomPassword();
|
||
|
$row->storePassword();
|
||
|
$row->storePassword( false );
|
||
|
}
|
||
|
if ($row->approved == 0 && $approved == 1 && $row->confirmed == 1 ) {
|
||
|
$row->approved = 1;
|
||
| ... | ... | |
|
case 'unblock':
|
||
|
$_PLUGINS->trigger( 'onBeforeUserBlocking', array( $row, $actionValue ) );
|
||
|
$row->block = (int) $actionValue;
|
||
|
if ( $row->storeBlock() ) {
|
||
|
if ( $row->storeBlock( false ) ) {
|
||
|
// if action is to block a user, delete user acounts active sessions
|
||
|
if ( $actionValue == 1 ) {
|
||
|
$query = "DELETE FROM #__session"
|
||