Add UI for client API keys
This commit is contained in:
parent
2017e640b6
commit
9b93629f45
9 changed files with 215 additions and 85 deletions
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',
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue