I'm putting together a small web app using Laravel 5.1.
However whenever I submit the login form (1) rather than being redirect( which is set) or some form of error data being returned the same form is displayed again with no errors or useful response to help diagnose why authentication isn't taking place.
Any suggestions would be gratefully accepted.
1
{!!Form::open(array('method'=>'POST','action'=>'Auth\AuthController@postLogin'))!!}
<div class="form-group">
{!!Form::label('Email','Email')!!}
{!!Form::email('Email',null,['class'=>'form-control'])!!}
{!!Form::label('Password','Password')!!}
{!!Form::password('Password',['class'=>'form-control'])!!}
{!!Form::label('Remember Me', 'Remember Me')!!}
{!!Form::checkbox('Remember me',null,null,['class'=>'form-control'])!!}
{!!Form::submit('login',['class'=>'btn btn-primary form-control'])!!}
Route.php
// ...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');
Route::controllers([
'password' => 'Auth\PasswordController',
]);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire