DBContext & repository

This commit is contained in:
max
2025-02-02 01:06:36 +01:00
parent 5b4509cac3
commit 0f6b2fec88
6 changed files with 76 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ public class UserValidator : IUserValidator
}
else
{
var userEmailResult = await manager.UserRepository.GetAuthorityUserByEmailAsync(user.EmailAddress);
var userEmailResult = await manager.UserRepository.GetUserByEmailAsync(user.EmailAddress);
if (userEmailResult != null)
{
errors.Add(new ValidationError(ValidatorId, $"{ValidationBase}.EmailExists",