Esempio n. 1
0
 /**
  * Refresh the remember token for the user.
  *
  * @param  \Auth\UserInterface  $user
  * @return void
  */
 protected function refreshRememberToken(UserInterface $user)
 {
     $user->setRememberToken($token = str_random(60));
     $this->provider->updateRememberToken($user, $token);
 }
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Auth\UserInterface  $user
  * @param  string  $token
  * @return void
  */
 public function updateRememberToken(UserInterface $user, $token)
 {
     $user->setRememberToken($token);
     $user->save();
 }