Tuesday, April 11, 2017

Laravel 5.4 error messages displays inappropriate field

I am using laravel 5.4 make:auth. In the login page,I enter a valid email address and wrong password.The error message displays "These credentials do not match our records" highlighting the Email address field instead of password field. Login page with wrong password entered

have a entry in user table.valid email in usertable

I know that, the custom error messages displayed from resources\lang\en\auth.php 'failed' => 'These credentials do not match our records.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',

No changes done in form login.blade.php and registercontroller.php

Why is it highlighting the email address box instead of password box and throwing error there.



via Raja

Advertisement