Actually show errors on password reset page.
This commit is contained in:
parent
7e0cbe8db1
commit
aa6060846d
2 changed files with 13 additions and 1 deletions
|
@ -46,7 +46,8 @@ class ResetPasswordController extends Controller
|
||||||
protected function rules()
|
protected function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'token' => 'required', 'email' => 'required|email',
|
'token' => 'required',
|
||||||
|
'email' => 'required|email',
|
||||||
'password' => 'required|confirmed|' . User::PASSWORD_RULES,
|
'password' => 'required|confirmed|' . User::PASSWORD_RULES,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,17 @@
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="login-box-body">
|
<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">×</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>
|
<p class="login-box-msg">@lang('auth.reset_password_text')</p>
|
||||||
<form action="{{ route('auth.reset.post') }}" method="POST">
|
<form action="{{ route('auth.reset.post') }}" method="POST">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Reference in a new issue