I used php artisan make:auth to create basic authentication system in my Laravel project.
On Homepage I created Bootstrap modal with login form, which works fine when I enter correct details, I get logged in and redirected back to Homepage.
But if I enter wrong details the page reloads and I dont see what was wrong because obviously the error messages are in modal window, which is hidden because page was just realoaded. And I have to open modal myself again to see the errors.
So I would like to edit my LoginController(or whatever) in case of errors(form validation fail) to redirect me to /login URL where is the basic login form(without modal) to see the errors properly.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire