Skip to content

Commit

Permalink
Redirect to the fortify configured logout redirect after deleting user (
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored Dec 6, 2022
1 parent c4a9630 commit dfc3ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Livewire/DeleteUserForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function deleteUser(Request $request, DeletesUsers $deleter, StatefulGuar
$request->session()->regenerateToken();
}

return redirect('/');
return redirect(config('fortify.redirects.logout', '/'));
}

/**
Expand Down

0 comments on commit dfc3ffc

Please sign in to comment.