First: I know that this have been asked before, but that is quite awhile ago and no one had a solving answer. In this period of time, i hope someone else has figured.
Whenever i sign out of my laravel
application (whether that be manually or by timeout) and i try to sign in, i get this error:
TokenMismatchException in VerifyCsrfToken.php line 67:
This is the form:
<div class="login_wrapper">
<form method="POST" action="/auth/login">
{!! csrf_field() !!}
<input type="text" name="email" placeholder="{{ trans('nosession.login_email') }}">
<input type="text" name="password" placeholder="{{ trans('nosession.login_password') }}">
<input type="checkbox" name="remember"> Remember Me
<input type="submit" class="btn okay" value="{{ trans('nosession.login_button') }}">
</form>
</div>
I'm using the default Auth
feature in Laravel
, only changed the table. Sign-in works on second attempt without any problems. Any ideas?
Ps. I've tried changing {!! csrf_field() !!}
to { csrf_field() }
, as some people suggested it.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire