I’m using the standard UmbLoginController login code for a protected page, as pulled from this step-by-step. Everything works, but the errors that are supposed to show for an incorrect password, locked account, etc. don’t appear. The only error that shows is if the user fails to enter a password entirely. The (locked) UmbLoginController has if/else statements that should make errors appear, but they’re not appearing – nothing beyond a page reload happens when the password is correct; I’ve even checked the page code to see if a class gets added anywhere, and that doesn’t appear to be the case.
Is there something that can be done to make an error text appear in case of an invalid login attempt?
I just had a play around, and I got the validation errors to show on the Login macro by changing the value of the asp-validation-summary tag helper from ModelOnly to All.
Here’s some info on what the asp-validation-summary tag helper does:
I’m not sure why the errors are not showing when it’s set to ModelOnly, as they are being set on ModelState in the UmbLoginController.cs, so they should be showing… How odd