mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Add UI for client API keys
This commit is contained in:
21
app/Http/Requests/Base/CreateClientApiKeyRequest.php
Normal file
21
app/Http/Requests/Base/CreateClientApiKeyRequest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Pterodactyl\Http\Requests\Base;
|
||||
|
||||
use Pterodactyl\Http\Requests\FrontendUserFormRequest;
|
||||
|
||||
class CreateClientApiKeyRequest extends FrontendUserFormRequest
|
||||
{
|
||||
/**
|
||||
* Validate the data being provided.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'memo' => 'required|string|max:255',
|
||||
'allowed_ips' => 'nullable|string',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user