Exemple #1
0
 public function signIn($person, $next = null)
 {
     // Make sure the user has an access token
     $person->setAccessToken();
     $person->save();
     // Set cookie
     Response\Base::setCookie(self::COOKIE, $person->access_token, 60 * 60 * 24 * 365 * 10);
     return $this->finalRedirect($next);
 }