Skip to content

Commit

Permalink
Fix error redirect when resetting passwords
Browse files Browse the repository at this point in the history
This was an oversight from the large database column renamings.

Fixes #1683.
  • Loading branch information
franzliedke committed Feb 3, 2019
1 parent 6484dc4 commit 4611abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forum/Controller/SavePasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function handle(Request $request): ResponseInterface
} 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);
Expand Down

0 comments on commit 4611abe

Please sign in to comment.