Add underlying code to handle authenticating websocket credentials

This commit is contained in:
Dane Everitt
2019-09-08 17:48:37 -07:00
parent 1ae374069c
commit 086018751d
12 changed files with 240 additions and 35 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Pterodactyl\Http\Requests\Api\Remote;
use Illuminate\Foundation\Http\FormRequest;
class AuthenticateWebsocketDetailsRequest extends FormRequest
{
/**
* @return bool
*/
public function authorize()
{
return true;
}
/**
* @return array
*/
public function rules()
{
return [
'server_uuid' => 'required|string',
];
}
}