framework/views/reset-password.blade.php
2017-11-29 12:53:06 +10:30

34 lines
1.1 KiB
PHP

@extends('flarum.forum::layouts.basic')
@inject('url', 'Flarum\Forum\UrlGenerator')
@section('title', $translator->trans('core.views.reset_password.title'))
@section('content')
@if ($errors->any())
<div class="errors">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form" method="POST" action="{{ $url->toRoute('savePassword') }}">
<input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
<p class="form-group">
<input type="password" class="form-control" name="password" placeholder="{{ $translator->trans('core.views.reset_password.new_password_label') }}">
</p>
<p class="form-group">
<input type="password" class="form-control" name="password_confirmation" placeholder="{{ $translator->trans('core.views.reset_password.confirm_password_label') }}">
</p>
<p class="form-group">
<button type="submit" class="button">{{ $translator->trans('core.views.reset_password.submit_button') }}</button>
</p>
</form>
@endsection