From a2b58598a67c0e74f99ff1a27e045c7807e47783 Mon Sep 17 00:00:00 2001 From: mfnefd Date: Thu, 6 Jun 2024 17:48:03 +0400 Subject: [PATCH] fix user logic contract and user view model --- Contracts/BusinessLogicContracts/IUserLogic.cs | 3 ++- Contracts/ViewModels/UserViewModel.cs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Contracts/BusinessLogicContracts/IUserLogic.cs b/Contracts/BusinessLogicContracts/IUserLogic.cs index 300e525..fdcc510 100644 --- a/Contracts/BusinessLogicContracts/IUserLogic.cs +++ b/Contracts/BusinessLogicContracts/IUserLogic.cs @@ -3,6 +3,7 @@ using Contracts.SearchModels; using Contracts.ViewModels; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -11,7 +12,7 @@ namespace Contracts.BusinessLogicContracts { public interface IUserLogic { - UserViewModel Login(UserBindingModel model); + UserViewModel Login(string email, string password); UserViewModel Create(UserBindingModel model); diff --git a/Contracts/ViewModels/UserViewModel.cs b/Contracts/ViewModels/UserViewModel.cs index 4f15600..6174d56 100644 --- a/Contracts/ViewModels/UserViewModel.cs +++ b/Contracts/ViewModels/UserViewModel.cs @@ -12,7 +12,6 @@ namespace Contracts.ViewModels public string FirstName { get; set; } = string.Empty; public string SecondName { get; set; } = string.Empty; public string Email { get; set; } = string.Empty; - public string PasswordHash { get; set; } = string.Empty; public DateTime Birthday { get; set; } public RoleViewModel Role { get; set; } = null!; }