Exemple #1
0
 /**
  * Queue the recaller cookie into the cookie jar.
  *
  * @param  \Illuminate\Auth\UserInterface  $user
  * @return void
  */
 protected function queueRecallerCookie($user)
 {
     $value = $user->getAuthIdentifier() . '|' . $user->getRememberToken();
     $this->getCookieJar()->queue($this->createRecaller($value));
 }
Exemple #2
0
 /**
  * Create a new remember token for the user if one doens't already exist.
  *
  * @param  \Illuminate\Auth\UserInterface  $user
  * @return void
  */
 protected function createRememberTokenIfDoesntExist(UserInterface $user)
 {
     if (is_null($user->getRememberToken())) {
         $this->refreshRememberToken($user);
     }
 }
Exemple #3
0
 /**
  * Create a new remember token for the user if one doesn't already exist.
  *
  * @param  \Illuminate\Auth\UserInterface  $user
  * @return void
  */
 protected function createRememberTokenIfDoesntExist(UserInterface $user)
 {
     $rememberToken = $user->getRememberToken();
     if (empty($rememberToken)) {
         $this->refreshRememberToken($user);
     }
 }