/**
  * Retrieve a user by by their unique identifier and "remember me" token.
  *
  * @param  mixed  $identifier
  * @param  string  $token
  * @return \Illuminate\Auth\GenericUser|null
  */
 public function retrieveByToken($identifier, $token)
 {
     $user = new GenericUser(Session::get('currentUser'));
     if ($user->id == $identifier && $user->getRememberToken()) {
         return $user;
     }
     return null;
 }
Пример #2
0
 /**
  * @param NetForce $provider
  * @param array $attributes
  */
 public function __construct(NetForce $provider, array $attributes, array $scopes = null)
 {
     parent::__construct($attributes);
     $this->provider = $provider;
     $this->scopes = $scopes;
 }