Template
mirror of
https://github.com/egmont11/ASP.Net-Core-MVC-Template.git
synced 2026-07-24 07:09:56 +02:00
Base template solution with tests, authentication, support for admin accounts, prepared tests for auth, basic error handling system used in auth.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using TemplateWeb.Models;
|
||||
using TemplateWeb.Models.DbModels;
|
||||
|
||||
namespace TemplateWeb.Interfaces;
|
||||
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<ServiceResult<UserModel>> FindUserByEmailOrUsernameAsync(string emailOrUsername);
|
||||
Task<ServiceResult> AuthenticateAsync(UserModel user, bool rememberMe);
|
||||
Task<ServiceResult<UserModel>> RegisterAsync(AuthRegisterViewModel model);
|
||||
Task LogoutAsync();
|
||||
Task<ServiceResult> DeleteUserAsync(UserModel user);
|
||||
}
|
||||
Reference in New Issue
Block a user