Skip to content

No way to change URL for redirect after changing password #3268

Answered by dgoldstein89
kyleshepherd asked this question in Q&A
Discussion options

You must be logged in to vote

Create your own ResetPasswordController which extends \Laravel\Nova\Http\Controllers\ResetPasswordController and override redirectPath(). You also have to override boot() in NovaServiceProvider and add an alias.

app/Http/Controllers/ResetPasswordController.php

<?php

namespace App\Http\Controllers;

class ResetPasswordController extends \Laravel\Nova\Http\Controllers\ResetPasswordController
{
    public function redirectPath()
    {
        return '/my/custom/path';
    }
}

app/Providers/NovaServiceProvider

<?php

namespace App\Providers;

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    public function boot()
    {
        parent::boot();

        $this->app->alias…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kyleshepherd
Comment options

@kyleshepherd
Comment options

@dgoldstein89
Comment options

Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3266 on February 26, 2021 08:56.