1
0
mirror of https://github.com/flarum/core.git synced 2025-02-24 19:23:01 +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:
Franz Liedke 2019-02-03 21:06:47 +01:00
parent 6484dc4982
commit 4611abe5db
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -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);