Actually show errors on password reset page.

This commit is contained in:
Dane Everitt 2017-04-27 23:44:26 -04:00
parent 7e0cbe8db1
commit aa6060846d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 13 additions and 1 deletions

View file

@ -46,7 +46,8 @@ class ResetPasswordController extends Controller
protected function rules()
{
return [
'token' => 'required', 'email' => 'required|email',
'token' => 'required',
'email' => 'required|email',
'password' => 'required|confirmed|' . User::PASSWORD_RULES,
];
}

View file

@ -25,6 +25,17 @@
@section('content')
<div class="login-box-body">
@if (count($errors) > 0)
<div class="callout callout-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
@lang('auth.auth_error')<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<p class="login-box-msg">@lang('auth.reset_password_text')</p>
<form action="{{ route('auth.reset.post') }}" method="POST">
<div class="form-group">