Correction compilation

This commit is contained in:
2026-01-18 16:42:16 +01:00
parent 614f64ddbb
commit de3b03258f

View File

@@ -12,7 +12,7 @@
<div class="d-flex justify-content-center align-items-center">
<div class="col-md-4 p-5 shadow-sm border rounded-3">
<h2 class="text-center mb-4 text-primary">Login Form</h2>
<EditForm Model="user" OnValidSubmit="Authenticate">
<EditForm Model="userLogin" OnValidSubmit="Authenticate">
<DataAnnotationsValidator />
<div class="mb-3">
<label for="email">User Name</label>
@@ -50,10 +50,10 @@
private async Task Authenticate()
{
var result = await AuthService.Login(user);
var result = await AuthService.Login(userLogin.UserName, userLogin.Password);
if (result.Success)
{
errorMessage = string.Empty;
_errorMessage = string.Empty;
// if (rememberMe)
// await LocalStorageService.SetItemAsync("authToken", result.Data);
// else
@@ -65,7 +65,7 @@
}
else
{
errorMessage = result.Message;
_errorMessage = result.Message;
}
// if(string.IsNullOrWhiteSpace(Model.UserName) || string.IsNullOrWhiteSpace(Model.Password))
// {