mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 22:10:44 +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) {
|
} catch (ValidationException $e) {
|
||||||
$request->getAttribute('session')->put('errors', $e->errors());
|
$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);
|
$token->user->changePassword($password);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user