Пример #1
0
 public function performAction()
 {
     $identity = Password::findIdentity($this->login, $this->password);
     AuthService::getInstance()->signIn($identity);
     Router::redirect($this->io->makeAnchor(AlbumCommand::createState()));
     $this->response->success('btch');
 }
Пример #2
0
 public function performAction()
 {
     if ($user = AuthService::getInstance()->getUser()) {
         Router::redirect($this->io->makeAnchor(AlbumCommand::createState()));
     }
     $this->response->addContent(new Heading('Welcome aboard!'));
     $this->response->addContent(LoginForm::create());
 }