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);
}
$find = new IP($request->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);
}
}

View file

@ -33,7 +33,7 @@ return [
'header_sub' => 'Manage your API access keys.',
'list' => 'API Keys',
'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' => [
'header' => 'New API Key',