/**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string                                     $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     if ($user->exists) {
         $user->setRememberToken($token);
         $user->save();
     }
 }
Example #2
0
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @param  string  $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
 }
Example #3
0
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     /** @var DbObject $user */
     $user->save();
 }
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @param  string  $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $user->save();
 }
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param \Illuminate\Contracts\Auth\Authenticatable $user
  * @param string                                     $token
  *
  * @return void
  */
 public function updateRememberToken(AuthenticatableContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush($user);
 }
Example #6
0
 /**
  * Refresh the "remember me" token for the user.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @return void
  */
 protected function refreshRememberToken(Authenticatable $user)
 {
     $user->setRememberToken($token = Str::random(60));
     $this->provider->updateRememberToken($user, $token);
 }
Example #7
0
 /**
  * Update the "remember me" token for the given user in storage.
  * @param  Authenticatable $user
  * @param  string          $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->repository->flush();
 }
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush();
 }
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string                                     $token
  *
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     if ($this->use_remember_me == TRUE) {
         if ($this->log_logins) {
             Log::debug('login.updaterememberme.enabled', ['username_clean' => $user->username_clean, 'token' => $token]);
         }
         $user->setRememberToken($token);
         $user->save();
     } else {
         if ($this->log_logins) {
             Log::debug('login.updaterememberme.disabled', ['username_clean' => $user->username_clean, 'token' => $token]);
         }
     }
 }
Example #10
0
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param IlluminateAuthenticatable $user
  * @param string                    $token
  *
  * @return void
  */
 public function updateRememberToken(IlluminateAuthenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush($user);
 }
 /**
  * @inheritdoc
  *
  * @param Authenticatable|User $user
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->saveEntityAndCommit($user);
 }
Example #12
0
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  BaseAuthenticatable $member member entity
  * @param  string              $token  token for update
  *
  * @return void
  */
 public function updateRememberToken(BaseAuthenticatable $member, $token)
 {
     $member->setRememberToken($token);
     $this->repo->update($member);
 }
Example #13
0
 /**
  * Update the "remember me" token for the given user in storage.
  * @param  Authenticatable $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->entityManager->persist($user);
     $this->entityManager->flush();
 }
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  UserInterface $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->getRepository()->store($user);
 }
 /**
  * Updates the "remember me" token for the given user in storage.
  *
  * @param \Illuminate\Auth\UserInterface $user
  * @param string $token
  * @return void
  */
 public function updateRememberToken(\Illuminate\Contracts\Auth\Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->d2repository->createQueryBuilder('u')->getEntityManager()->flush();
 }
 /**
  * @inheritdoc
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->userStorage->save($user);
 }
 /**
  * Refresh the "remember me" token for the user.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @return void
  */
 protected function refreshRememberToken(UserContract $user)
 {
     $user->setRememberToken($token = Str::random(60));
     $this->provider->updateRememberToken($user, $token);
 }