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

33 lines
670 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Controllers\Auth;
use Pterodactyl\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
use ResetsPasswords;
2017-03-19 23:36:50 +00:00
/**
* The URL to redirect users to after password reset.
*
* @var string
*/
2016-09-04 23:08:46 +00:00
public $redirectTo = '/';
2017-03-19 23:36:50 +00:00
/**
* Return the rules used when validating password reset.
*
* @return array
*/
protected function rules(): array
2016-12-07 22:46:38 +00:00
{
return [
'token' => 'required',
'email' => 'required|email',
'password' => 'required|confirmed|min:8',
];
}
}