The form appears on the page ok, but if the user submits wrong details, it just refreshes the page. Is there any way I can display an error message to let the user know if they have entered a wrong username or password?
I have checked the tempdata and viewdata passed back to the macro view but neither of them seem to contain any error details
If I only wanted the login errors to show in the summary and not the model errors (ie only when a user name and password were submitted and incorrect), I had to replace the above with
@Html.ValidationMessage("loginModel", new { @class = "form__validation" })
Umbraco 13 Login errors
I have followed these instructions to create a login page using a macro:
https://docs.umbraco.com/umbraco-cms/tutorials/members-registration-and-login
The form appears on the page ok, but if the user submits wrong details, it just refreshes the page. Is there any way I can display an error message to let the user know if they have entered a wrong username or password?
I have checked the tempdata and viewdata passed back to the macro view but neither of them seem to contain any error details
I had to change the mode of the asp validation summary to All:
If I only wanted the login errors to show in the summary and not the model errors (ie only when a user name and password were submitted and incorrect), I had to replace the above with
is working on a reply...