diff --git a/phronCare.API/Controllers/AccountController.cs b/phronCare.API/Controllers/AccountController.cs index af9e9cd..fbdb3e8 100644 --- a/phronCare.API/Controllers/AccountController.cs +++ b/phronCare.API/Controllers/AccountController.cs @@ -142,6 +142,7 @@ namespace phronCare.API.Controllers user.NormalizedEmail = model.Email.ToUpper(); user.TwoFactorEnabled = model.TwoFactorEnabled; user.LockoutEnabled = model.LockoutEnabled; + user.EmailConfirmed = model.EmailConfirmed; // Campos personalizados user.FirstName = model.FirstName; user.LastName = model.LastName; diff --git a/phronCare.API/Models/Account/UserUpdate.cs b/phronCare.API/Models/Account/UserUpdate.cs index ef71b30..298dd7b 100644 --- a/phronCare.API/Models/Account/UserUpdate.cs +++ b/phronCare.API/Models/Account/UserUpdate.cs @@ -7,6 +7,7 @@ public string Email { get; set; } = string.Empty; public bool TwoFactorEnabled { get; set; } public bool LockoutEnabled { get; set; } + public bool EmailConfirmed { get; set; } // Nuevos campos public string? FirstName { get; set; } diff --git a/phronCare.UIBlazor/Layout/NavMenu.razor b/phronCare.UIBlazor/Layout/NavMenu.razor index 9419d68..34b1f31 100644 --- a/phronCare.UIBlazor/Layout/NavMenu.razor +++ b/phronCare.UIBlazor/Layout/NavMenu.razor @@ -113,7 +113,7 @@ @code { private bool collapseNavMenu = true; private bool minimizeNavMenu = false; - private bool expClientes = false; + private bool expClientes = true; private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null; diff --git a/phronCare.UIBlazor/Pages/Accounts/Registration.razor b/phronCare.UIBlazor/Pages/Accounts/Registration.razor index 9415e68..86c41b9 100644 --- a/phronCare.UIBlazor/Pages/Accounts/Registration.razor +++ b/phronCare.UIBlazor/Pages/Accounts/Registration.razor @@ -68,7 +68,7 @@
- +
@@ -160,7 +160,7 @@ public string? FirstName { get; set; } public string? LastName { get; set; } public string? PhoneNumber { get; set; } - public string? Company { get; set; } + public string? CompanyName { get; set; } public string? Department { get; set; } public DateTime? BirthDate { get; set; } } diff --git a/phronCare.UIBlazor/Pages/Accounts/UserForm.razor b/phronCare.UIBlazor/Pages/Accounts/UserForm.razor index 474cfc4..e80cd1c 100644 --- a/phronCare.UIBlazor/Pages/Accounts/UserForm.razor +++ b/phronCare.UIBlazor/Pages/Accounts/UserForm.razor @@ -53,18 +53,24 @@
-
+
-
+
+
+
+ + +
+
@@ -108,19 +114,20 @@ User user = deserializedUser ?? new User(); return new UserUpdate - { - Id = user.Id, - UserName = user.UserName, - Email = user.Email, - LockoutEnabled = user.LockoutEnabled, - TwoFactorEnabled = user.TwoFactorEnabled, - FirstName = user.FirstName, - LastName = user.LastName, - PhoneNumber = user.PhoneNumber, - CompanyName = user.CompanyName, - Department = user.Department, - BirthDate = user.BirthDate - }; + { + Id = user.Id, + UserName = user.UserName, + Email = user.Email, + LockoutEnabled = user.LockoutEnabled, + TwoFactorEnabled = user.TwoFactorEnabled, + EmailConfirmed = user.EmailConfirmed, + FirstName = user.FirstName, + LastName = user.LastName, + PhoneNumber = user.PhoneNumber, + CompanyName = user.CompanyName, + Department = user.Department, + BirthDate = user.BirthDate + }; } } catch @@ -198,5 +205,6 @@ public DateTime? BirthDate { get; set; } public bool TwoFactorEnabled { get; set; } public bool LockoutEnabled { get; set; } + public bool EmailConfirmed { get; set; } } } \ No newline at end of file diff --git a/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor b/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor index e8d2779..dddfab6 100644 --- a/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor +++ b/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor @@ -282,7 +282,7 @@
@code { - private QuoteSearchParams Filters = new(); + private QuoteSearchParams Filters = new() { PageSize = 9 }; private PagedResult? PagedQuotes; private QuoteDto? SelectedQuote { get; set; } private bool IsLoading;