Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/users/users_event_handler.php
Show First 20 Lines • Show All 1101 Lines • ▼ Show 20 Line(s) | |||||
/* @var $order OrdersItem */ | /* @var $order OrdersItem */ | ||||
return $order->GetDBField('PortalUserId'); | return $order->GetDBField('PortalUserId'); | ||||
break; | break; | ||||
case 'profile': | case 'profile': | ||||
$id = $this->Application->GetVar('user_id'); | $id = $this->Application->GetVar('user_id'); | ||||
if ( !$id ) { | if ( $id ) { | ||||
// if none user_id given use current user id | $event->setEventParam(kEvent::FLAG_ID_FROM_REQUEST, true); | ||||
$id = $this->Application->RecallVar('user_id'); | |||||
} | |||||
return $id; | return $id; | ||||
} | |||||
// If none user_id given use current user id. | |||||
return $this->Application->RecallVar('user_id'); | |||||
break; | break; | ||||
case 'forgot': | case 'forgot': | ||||
/* @var $user_helper UserHelper */ | /* @var $user_helper UserHelper */ | ||||
$user_helper = $this->Application->recallObject('UserHelper'); | $user_helper = $this->Application->recallObject('UserHelper'); | ||||
$id = $user_helper->validateUserCode($this->Application->GetVar('user_key'), 'forgot_password'); | $id = $user_helper->validateUserCode($this->Application->GetVar('user_key'), 'forgot_password'); | ||||
▲ Show 20 Lines • Show All 804 Lines • Show Last 20 Lines |