示例#1
0
 public function actionTwitterLogin()
 {
     $identity = $this->twitterAuth->authenticate();
     $this->user->login($identity);
     $this->logger->log("auth", "login", "Uživatel %user% se přihlásil prostřednictvím Twitteru");
     $this->redirectAfterLogin();
 }
 protected function dologin($data)
 {
     if (!empty($data['BackURL'])) {
         Session::set('BackURL', $data['BackURL']);
     }
     Session::set('SessionForms.TwitterLoginForm.Remember', !empty($data['Remember']));
     return TwitterAuthenticator::authenticate($data, $this);
 }