Fix password reset

This commit is contained in:
Deon George 2021-07-09 11:53:04 +10:00
parent 1f114667aa
commit 2eaf000ce0
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
3 changed files with 16 additions and 10 deletions

View File

@ -45,14 +45,14 @@
<p class="login-box-msg">{{ trans('adminlte_lang::message.siginsession') }}</p>
<form method="post">
{{ csrf_field() }}
@csrf
<div class="row">
<div class="col-12">
<div class="input-group mb-3">
<input type="email" name="email" class="form-control" placeholder="Email">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-envelope fa-fw"></i></span>
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
</div>
</div>
</div>
@ -61,7 +61,7 @@
<div class="input-group mb-3">
<input type="password" name="password" class="form-control" placeholder="Password">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key fa-fw"></i></span>
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
</div>
</div>
</div>

View File

@ -35,13 +35,15 @@
<p class="login-box-msg">You forgot your password? Here you can easily retrieve a new password.</p>
<form method="post" action="{{ url('password/email') }}">
{{ csrf_field() }}
@csrf
<div class="input-group mb-3">
<input type="email" name="email" class="form-control" placeholder="Email" required>
<div class="input-group-append">
<span class="fas fa-envelope input-group-text"></span>
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
</div>
</div>
<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">{{ trans('adminlte_lang::message.sendpassword') }}</button>

View File

@ -27,32 +27,36 @@
<p class="login-box-msg">You are only one step a way from your new password, set your new password now.</p>
<form method="post" action="{{ url('password/reset') }}">
{{ csrf_field() }}
<input type="hidden" name="token" value="{{ $token }}">
@csrf
<div class="input-group mb-3">
<input type="email" name="email" class="form-control" placeholder="Email" required>
<div class="input-group-append">
<span class="fas fa-envelope fa-fw input-group-text"></span>
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
</div>
</div>
<div class="input-group mb-3">
<input type="password" name="password" class="form-control" placeholder="Password" required>
<div class="input-group-append">
<span class="fas fa-lock input-group-text"></span>
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
</div>
</div>
<div class="input-group mb-3">
<input type="password" name="password_confirmation" class="form-control" placeholder="Confirm Password" data-match="#password" required>
<div class="input-group-append">
<span class="fas fa-lock input-group-text"></span>
<span class="input-group-text"><i class="fas fa-fw fa-clone"></i></span>
</div>
</div>
<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">{{ trans('adminlte_lang::message.passwordreset') }}</button>
</div>
<!-- /.col -->
</div>
<input type="hidden" name="token" value="{{ $token }}">
</form>
<p class="mt-3 mb-1">