1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00

Merge branch 'feature/api-key-changes' into feature/api-v1

This commit is contained in:
Dane Everitt 2017-11-26 13:27:39 -06:00
commit fb7d8a9626
2 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@ class AuthenticateIPAccess
return $next($request); return $next($request);
} }
$find = new IP($request->ip());
foreach ($model->allowed_ips as $ip) { foreach ($model->allowed_ips as $ip) {
if (Range::parse($ip)->contains(new IP($request->ip()))) { if (Range::parse($ip)->contains($find)) {
return $next($request); return $next($request);
} }
} }

View File

@ -33,7 +33,7 @@ return [
'header_sub' => 'Manage your API access keys.', 'header_sub' => 'Manage your API access keys.',
'list' => 'API Keys', 'list' => 'API Keys',
'create_new' => 'Create New API key', 'create_new' => 'Create New API key',
'keypair_created' => 'An API Key-Pair has been generated and is listed below.', 'keypair_created' => 'An API key has been successfully generated and is listed below.',
], ],
'new' => [ 'new' => [
'header' => 'New API Key', 'header' => 'New API Key',