diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityUserRepository.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityUserRepository.cs index 8b871220dc..37516c05a7 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityUserRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentityUserRepository.cs @@ -62,7 +62,7 @@ namespace Volo.Abp.Identity string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default ); @@ -99,7 +99,7 @@ namespace Volo.Abp.Identity string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default ); } diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs index 77e9607cdf..648c999624 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs @@ -142,7 +142,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default) { return await (await GetDbSetAsync()) @@ -162,7 +162,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore .WhereIf(!string.IsNullOrWhiteSpace(phoneNumber), x => x.PhoneNumber == phoneNumber) .WhereIf(!string.IsNullOrWhiteSpace(emailAddress), x => x.Email == emailAddress) .WhereIf(isLockedOut == true, x => x.LockoutEnabled && x.LockoutEnd > DateTimeOffset.UtcNow) - .WhereIf(isActive == true, x => x.IsActive == isActive) + .WhereIf(notActive == true, x => !x.IsActive) .OrderBy(sorting.IsNullOrWhiteSpace() ? nameof(IdentityUser.UserName) : sorting) .PageBy(skipCount, maxResultCount) .ToListAsync(GetCancellationToken(cancellationToken)); @@ -207,7 +207,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default) { return await (await GetDbSetAsync()) @@ -226,7 +226,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore .WhereIf(!string.IsNullOrWhiteSpace(phoneNumber), x => x.PhoneNumber == phoneNumber) .WhereIf(!string.IsNullOrWhiteSpace(emailAddress), x => x.Email == emailAddress) .WhereIf(isLockedOut == true, x => x.LockoutEnabled && x.LockoutEnd > DateTimeOffset.UtcNow) - .WhereIf(isActive == true, x => x.IsActive == isActive) + .WhereIf(notActive == true, x => !x.IsActive) .LongCountAsync(GetCancellationToken(cancellationToken)); } diff --git a/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/MongoIdentityUserRepository.cs b/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/MongoIdentityUserRepository.cs index 2800e42c18..30a8c147aa 100644 --- a/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/MongoIdentityUserRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.MongoDB/Volo/Abp/Identity/MongoDB/MongoIdentityUserRepository.cs @@ -144,7 +144,7 @@ namespace Volo.Abp.Identity.MongoDB string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default) { return await (await GetMongoQueryableAsync(cancellationToken)) @@ -163,7 +163,7 @@ namespace Volo.Abp.Identity.MongoDB .WhereIf>(!string.IsNullOrWhiteSpace(phoneNumber), x => x.PhoneNumber == phoneNumber) .WhereIf>(!string.IsNullOrWhiteSpace(emailAddress), x => x.Email == emailAddress) .WhereIf>(isLockedOut == true, x => x.LockoutEnabled && x.LockoutEnd > DateTimeOffset.UtcNow) - .WhereIf>(isActive == true, x => x.IsActive == isActive) + .WhereIf>(notActive == true, x => !x.IsActive) .OrderBy(sorting.IsNullOrWhiteSpace() ? nameof(IdentityUser.UserName) : sorting) .As>() .PageBy>(skipCount, maxResultCount) @@ -215,7 +215,7 @@ namespace Volo.Abp.Identity.MongoDB string phoneNumber = null, string emailAddress = null, bool? isLockedOut = null, - bool? isActive = null, + bool? notActive = null, CancellationToken cancellationToken = default) { return await (await GetMongoQueryableAsync(cancellationToken)) @@ -234,7 +234,7 @@ namespace Volo.Abp.Identity.MongoDB .WhereIf>(!string.IsNullOrWhiteSpace(phoneNumber), x => x.PhoneNumber == phoneNumber) .WhereIf>(!string.IsNullOrWhiteSpace(emailAddress), x => x.Email == emailAddress) .WhereIf>(isLockedOut == true, x => x.LockoutEnabled && x.LockoutEnd > DateTimeOffset.UtcNow) - .WhereIf>(isActive == true, x => x.IsActive == isActive) + .WhereIf>(notActive == true, x => !x.IsActive) .LongCountAsync(GetCancellationToken(cancellationToken)); }