Try and get error messages working again

This commit is contained in:
Jonny Barnes 2017-02-24 15:15:58 +00:00
parent 70d17006dd
commit 32b5b057fa
2 changed files with 8 additions and 12 deletions

View file

@ -5,13 +5,10 @@ New Note «
@stop
@section('content')
@if (session('error'))
<p class="error">{{ session('error') }}</p>
@endif
<p>This is my UI for posting new notes, hopefully youll soon be able to use this if your site supports the micropub API.</p>
@if($errors->endpoint->first() != '')
<p class="error">{{ $errors->endpoint->first() }}</p>
@endif
@if($errors->indieauth->first() != '')
<p class="error">{{ $errors->indieauth->first() }}</p>
@endif
@if($url === null)
<form action="{{ route('indieauth-start') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">