framework/views/reset-password.blade.php

34 lines
1.2 KiB
PHP
Raw Normal View History

2017-11-29 10:22:49 +08:00
@extends('flarum.forum::layouts.basic')
2018-01-01 08:04:19 +08:00
@inject('url', 'Flarum\Http\UrlGenerator')
2017-11-29 10:22:49 +08:00
@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
2017-12-29 18:59:04 +08:00
<form class="form" method="POST" action="{{ $url->to('forum')->route('savePassword') }}">
2017-11-29 10:22:49 +08:00
<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