misc_pterodactyl-panel/app/Http/Controllers/Auth/ResetPasswordController.php

32 lines
670 B
PHP

<?php
namespace Pterodactyl\Http\Controllers\Auth;
use Pterodactyl\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
use ResetsPasswords;
/**
* The URL to redirect users to after password reset.
*
* @var string
*/
public $redirectTo = '/';
/**
* Return the rules used when validating password reset.
*
* @return array
*/
protected function rules(): array
{
return [
'token' => 'required',
'email' => 'required|email',
'password' => 'required|confirmed|min:8',
];
}
}