28 lines
510 B
PHP
28 lines
510 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Auth;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ResetPasswordRequest extends FormRequest
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'token' => 'required|string',
|
|
'email' => 'required|email',
|
|
'password' => 'required|string|confirmed|min:8',
|
|
];
|
|
}
|
|
}
|