mirror of
https://github.com/flarum/core.git
synced 2025-02-24 11:13:40 +01: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
6484dc4982
commit
4611abe5db
@ -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…
x
Reference in New Issue
Block a user