mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-26 00:04:45 +02:00
28 lines
451 B
PHP
28 lines
451 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Auth;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class LoginRequest extends FormRequest
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function authorized(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'user' => 'required|string|min:1',
|
|
'password' => 'required|string',
|
|
];
|
|
}
|
|
}
|