mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Merge branch 'feature/api-key-changes' into feature/api-v1
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user