Rename APIKey to ApiKey

This commit is contained in:
Dane Everitt 2018-01-14 12:06:15 -06:00
parent 7aa540b895
commit ad3a954256
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
14 changed files with 53 additions and 53 deletions

View file

@ -4,7 +4,7 @@ namespace Pterodactyl\Http\Middleware\Api\Admin;
use Closure;
use Illuminate\Http\Request;
use Pterodactyl\Models\APIKey;
use Pterodactyl\Models\ApiKey;
use Illuminate\Auth\AuthManager;
use Illuminate\Contracts\Encryption\Encrypter;
use Symfony\Component\HttpKernel\Exception\HttpException;
@ -61,8 +61,8 @@ class AuthenticateKey
}
$raw = $request->bearerToken();
$identifier = substr($raw, 0, APIKey::IDENTIFIER_LENGTH);
$token = substr($raw, APIKey::IDENTIFIER_LENGTH);
$identifier = substr($raw, 0, ApiKey::IDENTIFIER_LENGTH);
$token = substr($raw, ApiKey::IDENTIFIER_LENGTH);
try {
$model = $this->repository->findFirstWhere([['identifier', '=', $identifier]]);