mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 11:06:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			670 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 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',
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |