Route [login] not defined Error After Password Update in Filament
After implementing a profile edit feature in Filament, I'm encountering an issue where updating the password leads to session loss and a "Route [login] not defined" error. does anyone have the same problem?
11 Replies
are you using
$panel->profile()
?yes I used $panel->profile
and I added userMenuItems like this
because I have some fields that I have to edit also in the profile edit
this works on my end
for the current solution I added a web.php like this
but the drawback is that the user has to re-login
ok but this shouldn't lose the session 🤔
Have you set the path/url in the panel provider and what does the .env have for the urls?
Did you override the
save
method?
This should keep the session
Here I don't use the save method, I use the submit method because here I use a custom page.
Solution
try
thank you very much it really worked in my case.
is this code to save the new password hash into the session?
yep, check the original
save
method from EditProfile