Merge branch 'feature/api-key-changes' into feature/api-v1
This commit is contained in:
commit
fb7d8a9626
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue