Custom Login Page and Validation

Hello Radzen Team,
i have a custom login page (like described here) with an additional Textbox that must be filled before a login attemp is done.
The template form has Action "/Account/Login" and method "post".
I added validators but hey dont work because the form has an action (i found somethimg about this here)
So i added an click event on the save (or "Anmelden" on my side) button. There i can test if the textbox is empty.
But i dont now how to cancel the blazor action of teh template form.
Did i miss something?
it must be possible to do some validation on a custom login form before the login/accountcontroller is called.
please give my an advice to do this.

Greets
Thomas

Hi @Thomas ,

Make sure your form is configured like this:

Its Action and Method properties must be set as well as Data. Here I am using a property set to a new instance of the ApplicationUser class.

I am attaching a demo application which uses the Radzen Sample SQL database (available in the New MSSQL Data Source screen - the create sample schema button).
CustomLogin.zip (81.1 KB)

Hi @korchev,
that helped a lot!

Thank You!

Thomas