getgrav / grav-plugin-login

Grav Login Plugin
http://getgrav.org
MIT License
44 stars 54 forks source link

After password reset, redirection to 404 #174

Closed sebastianbaumann closed 4 years ago

sebastianbaumann commented 5 years ago

How can I change the redirect URL for the password reset form?

lufog commented 5 years ago

I have the same problem (on Grav 1.5.1, Login 2.7.3).

ChrisGitIt commented 5 years ago

Hi everybody,

looks like this is not working due to the missing route dispatch if there is no user/token within the url. I'm thinking about just adding a config route like "route_reset_success" that can point to a user generated "Success" page. Of course, the redirect to this route needs to be changed if the password reset is a success.

But before i start changing the source code: Are there any other solutions out there?

Greets,

Chris

UPDATE: In my case, i have removed the "fullname" field from the user registration form (custom form). I have added the field again and now it seems to work. Nevertheless, the "$user->validate()" is probably not implemented correctly (throws an error that is not catched and probably therefore results in a 404 page without any hints.

bobbwal commented 5 years ago

I'm having a similar problem but my email link goes straight to 404. Not sure what to try next.