new init api and start auth

This commit is contained in:
Riccardo Usardi committed 2025-07-06 21:37:41 +02:00
1 parent 7941a858fd
commit a172f05269
26 files changed
+640 -102

No files matched your search

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using uWine.Core.Domain.Entities;
using uWine.Core.Domain.Repositories;
namespace uWine.Core.Infrastructure.Services
{
public class AuthenticationService
{
readonly IAuthenticationRepository _authenticationRepository;
public AuthenticationService(IAuthenticationRepository authenticationRepository)
{
_authenticationRepository = authenticationRepository;
}
public bool IsAuthenticated(User user)
{
return _authenticationRepository.Valid(user);
}
}
}