mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 14:07:32 +08:00
Fix error redirect when resetting passwords
This was an oversight from the large database column renamings. Fixes #1683.
This commit is contained in:
parent
81648f643d
commit
e4a913db95
|
@ -88,7 +88,7 @@ class SavePasswordController implements RequestHandlerInterface
|
|||
} catch (ValidationException $e) {
|
||||
$request->getAttribute('session')->put('errors', $e->errors());
|
||||
|
||||
return new RedirectResponse($this->url->to('forum')->route('resetPassword', ['token' => $token->id]));
|
||||
return new RedirectResponse($this->url->to('forum')->route('resetPassword', ['token' => $token->token]));
|
||||
}
|
||||
|
||||
$token->user->changePassword($password);
|
||||
|
|
Loading…
Reference in New Issue
Block a user