Renamed ApplicationDbContext to IdentityDbContext
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -9,7 +8,7 @@ public record ChangeAddressRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangeAddressHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangeAddressRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -9,7 +8,7 @@ public record ChangeAliasRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangeAliasHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangeAliasRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -9,7 +8,7 @@ public record ChangeBirthDateRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangeBirthDateHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangeBirthDateRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -9,7 +8,7 @@ public record ChangeEmailRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangeEmailHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangeEmailRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -10,7 +9,7 @@ public record ChangeFullnameRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangeFullnameHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangeFullnameRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.Security;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
|
||||
@@ -9,7 +8,7 @@ public record ChangePhoneRequest(
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangePhoneHandler(
|
||||
ApplicationUserManager userManager)
|
||||
IdentityUserManager userManager)
|
||||
: Endpoint<ChangePhoneRequest>
|
||||
{
|
||||
public override void Configure()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Web.Common;
|
||||
using Hutopy.Web.Common.BlobStorage;
|
||||
using Hutopy.Web.Common.BlobStorage;
|
||||
using Hutopy.Web.Common.Security;
|
||||
|
||||
namespace Hutopy.Web.Features.Users.Handlers;
|
||||
@@ -25,7 +24,7 @@ public sealed class ChangePortraitRequestValidator : Validator<ChangePortraitReq
|
||||
|
||||
[PublicAPI]
|
||||
public class ChangePortraitHandler(
|
||||
ApplicationUserManager userManager,
|
||||
IdentityUserManager userManager,
|
||||
AzureBlobStorage blobStorage)
|
||||
: Endpoint<ChangePortraitRequest, ChangePortraitResponse>
|
||||
{
|
||||
|
||||
@@ -39,8 +39,8 @@ public record LoginWithGoogleResponse(
|
||||
[PublicAPI]
|
||||
public class LoginWithGoogleHandler(
|
||||
IHttpClientFactory httpClientFactory,
|
||||
ApplicationUserManager userManager,
|
||||
SignInManager<ApplicationUser> signInManager,
|
||||
IdentityUserManager userManager,
|
||||
SignInManager<IdentityUser> signInManager,
|
||||
IOptionsSnapshot<JwtOptions> jwtOptions)
|
||||
: Endpoint<LoginWithGoogleRequest, LoginWithGoogleResponse>
|
||||
{
|
||||
@@ -91,7 +91,7 @@ public class LoginWithGoogleHandler(
|
||||
if (user is null)
|
||||
{
|
||||
var generatedPassword = PasswordGenerator.GeneratePassword(10, 12);
|
||||
var generatedUser = new ApplicationUser
|
||||
var generatedUser = new IdentityUser
|
||||
{
|
||||
UserName = userInfo.Email,
|
||||
Email = userInfo.Email,
|
||||
|
||||
Reference in New Issue
Block a user