Merge remote-tracking branch 'origin/master' into feature/update-current-user
# Conflicts: # src/Infrastructure/Data/ApplicationDbContextInitializer.cs
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
using Google.Apis.Oauth2.v2.Data;
|
||||
using Hutopy.Application.Common.Models;
|
||||
using Hutopy.Application.Users.Models;
|
||||
|
||||
namespace Hutopy.Application.Common.Interfaces;
|
||||
|
||||
public interface IIdentityService
|
||||
{
|
||||
Task<Result<string>> CreateUserAsync(Userinfo userInfo);
|
||||
Task<Result<string>> CreateUserAsync(string email, string userName, string firstName, string lastName, string password);
|
||||
|
||||
Task<Result<string>> CreateUserAsync(string email, string userName, string firstName, string lastName,
|
||||
string password);
|
||||
|
||||
Task<UserModel?> GetCurrentUserAsync();
|
||||
Task<Result> UpdateCurrentUserBannerPictureUrlAsync(string url);
|
||||
Task<Result> UpdateCurrentUserProfilePictureUrlAsync(string url);
|
||||
@@ -15,6 +17,7 @@ public interface IIdentityService
|
||||
Task<Result<string>> UpdateCurrentUserAsync(UserModel userModel);
|
||||
Task<IList<string>> GetCurrentUserRolesAsync();
|
||||
Task<UserModel?> FindUserByIdAsync(string id);
|
||||
Task<UserModel?> FindUserByCreatorAliasAsync(string creatorAlias, CancellationToken cancellationToken);
|
||||
Task<UserModel?> FindUserByEmailAsync(string email);
|
||||
Task<UserModel?> GetUserByUserNameAsync(string userName);
|
||||
Task<string?> LoginAsync(string email, string password);
|
||||
|
||||
Reference in New Issue
Block a user