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'); }
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()); }