1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 00:47:00 +02:00

Improve password reset validation/error handling

This commit is contained in:
Toby Zerner
2016-11-13 08:51:38 +10:30
parent dde0de046a
commit b2c691a03d
3 changed files with 28 additions and 5 deletions

View File

@@ -11,6 +11,10 @@
<body>
<h1>{{ $translator->trans('core.views.reset.title') }}</h1>
@if (! empty($error))
<p>{{ $error }}</p>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ app('Flarum\Forum\UrlGenerator')->toRoute('savePassword') }}">
<input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">