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