custom redirect after password reset

hi, i've the following class that works:
<?php

namespace App\Filament\Modelperson\Pages\Auth;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Auth\PasswordReset\ResetPassword as BaseResetPassword;
use Filament\Http\Responses\Auth\Contracts\PasswordResetResponse;
use Illuminate\Database\Eloquent\Model;

class ResetPassword extends BaseResetPassword
{

public function form(Form $form): Form
{
return $form
->schema([
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
]);
}


public function resetPassword(): ?PasswordResetResponse
{
return parent::resetPassword();
}
}
<?php

namespace App\Filament\Modelperson\Pages\Auth;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Auth\PasswordReset\ResetPassword as BaseResetPassword;
use Filament\Http\Responses\Auth\Contracts\PasswordResetResponse;
use Illuminate\Database\Eloquent\Model;

class ResetPassword extends BaseResetPassword
{

public function form(Form $form): Form
{
return $form
->schema([
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
]);
}


public function resetPassword(): ?PasswordResetResponse
{
return parent::resetPassword();
}
}
but how can i customize the redirection after password reset? thanks
1 Reply
Want results from more Discord servers?
Add your server