public function actionChangeMail() { if ($this->userManager->changeMailInProgress($this->user->id)) { $this->template->enterCode = true; } else { $this->template->enterCode = false; } }