Hi,
On the Customer Login page, enter an invalid email and password.Click the Sign In button.
Expected Result - An inline error message should appear on the login page, clearly stating
Invalid login or password. to inform the user of the failed attempt.
Actual Result-The page reloads, clearing the password field but displaying no error message.
How to display the error message?
Thanks
Hi @padmachhat5f0d ,
In the default Magento flow, when a customer enters their email and password and clicks the Sign In button on the login page, the page reloads. If either the email or password is incorrect, the password field is cleared after the reload and a red error message appears at the top of the page (as shown in the attached screenshot).
I suggest testing this once with the Luma theme to verify the behavior. It seems that a custom extension or theme in your setup might be disrupting the default flow.
Additionally, please ensure that all core caches are enabled from Cache Management for validation.
Problem Solved? Accept as Solution!
Thanks
Ankit
Yeah, that definitely needs clearer feedback. You can handle it by validating on the server side and returning an error message to display inline. A simple way is to use the calculator approach of showing results instantly, just adapt that idea so the login form immediately shows what went wrong instead of reloading silently.
It might be caused by a theme or customization hiding the error. Try checking your login template and clear cache to see if the message shows up
Good point clear feedback is key. Tools like fairplay pro make tracking and managing user issues much easier.
Thanks
That's a great suggestion! Adapting the instant feedback approach from the calculator example makes a lot of sense. Implementing server-side validation with inline error messages would definitely improve the user experience and reduce confusion. Thanks for the tip!
@helensmith9623 wrote:Yeah, that definitely needs clearer feedback. You can handle it by validating on the server side and returning an error message to display inline. A simple way is to use the calculator approach of showing results instantly, just adapt that idea so the login form immediately shows what went wrong instead of reloading silently.
You’ll need to handle the failed login response and show an inline message instead of just refreshing the page otherwise users get confused. I had the same issue and adding proper validation plus a visible alert fixed it, no need to just Reload every time.
You can handle this by adding a validation message in your login controller or template so users get clear feedback. I’ve seen good UX examples on sites like socialswagstar.com worth checking for inspiration.