registration and authorization

This commit is contained in:
Вячеслав 2025-04-17 01:06:08 +05:00
parent 2b5f468b84
commit 4423dc360f
12 changed files with 136 additions and 6 deletions

View file

@ -41,4 +41,9 @@ public class UserRepository : IUserRepository
_context.Users.Remove(entity);
await _context.SaveChangesAsync();
}
public async Task<User?> GetUserByEmail(string email)
{
return await _context.Users.FirstOrDefaultAsync(u => u.Email == email);
}
}