public function showChangeForm() { $this->aParse['aMeta'] = UsersModule::getMeta(self::UpdateProfileConfigPage); $this->aParse['aMeta']['title'] .= ' - ' . $this->aProfile->login->getValue(); $this->aParse['aProfile'] = $this->aProfile->getParseData(); $this->output('users/profile/form', $this->aParse, array('get_profileform_data')); }
/** * * @param unknown $code */ public function confirm($code) { if (!empty($code)) { $oAccount = self::getByCode($code); } if (!empty($oAccount)) { $oAccount->confirmation_code = ''; $oAccount->update(); UsersLogin::forceLogin($oAccount); EventController::callEvent('users_registration_after_confirm', $oAccount); $bFailed = false; $this->addAlert('Аккаунт активирован'); $this->jump('/'); } else { $bFailed = true; } $this->aParse['pageMeta'] = UsersModule::getMeta(UsersRegistration::RegistrationConfigName); $this->aParse['isCodeEmpty'] = empty($code); $this->aParse['bFailed'] = $bFailed; $this->output('users/registration/confirm'); }