Login component and controller for cookie?

Dear RadZen Team,

I have seen that there is a login component. What interests me is whether it can also be used with a Blazor server? And if yes, then how do I call a controller to store e.g. an auth-cookie on the client?

Until now (without RadZen component) I did it in a way that I had a HTML post form:

<form id="LoginForm" action="cookie" method="post">
                        <label class="form-label">Email</label>
                        <input id="LoginFormEmail" class="input input-sm" type="text" name="email" />
                        <label class="form-label">Password</label>
                        <input class="input input-sm input-password-small" type="password" name="password" />
                        <input type="checkbox" id="remme" name="rememberme" value="true">
                        <div style="display: flex; justify-content: center;">
                            <input class="submit-btn" type="submit" value="@_T_("k_login")" />

In the Blazor server I then created a controller that saves (or deletes) an auth-cookie on the client.


Hi @perfect-code,

Indeed our Login component can be used in similar way. Check for example an application with security created from Radzen IDE/Radzen Blazor Studio.

1 Like