Skip to content

Commit 19b883f

Browse files
authored
Merge pull request #1351 from ITfoxtec/test
Test
2 parents 3778d33 + 5ac3d09 commit 19b883f

File tree

10 files changed

+12
-10
lines changed

10 files changed

+12
-10
lines changed

src/FoxIDs.Control/Controllers/Tracks/TUserController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public TUserController(TelemetryScopedLogger logger, IServiceProvider servicePro
186186

187187
var mUser = await tenantDataRepository.GetAsync<User>(await Models.User.IdFormatAsync(RouteBinding, new User.IdKey { Email = user.Email, UserIdentifier = user.Phone ?? user.Username }), queryAdditionalIds: true);
188188

189-
if ((!mUser.DisableAccount && user.DisableAccount) || user.ChangePassword || user.SetPasswordEmail || user.SetPasswordSms)
189+
if (!mUser.DisableAccount && user.DisableAccount)
190190
{
191191
await oAuthRefreshTokenGrantDownBaseLogic.DeleteRefreshTokenGrantsAsync(user.Email ?? user.Phone ?? user.Username, upPartyType: PartyTypes.Login);
192192
}
@@ -325,9 +325,10 @@ public async Task<IActionResult> DeleteUser(string email, string phone, string u
325325
phone = phone?.Trim();
326326
username = username?.Trim()?.ToLower();
327327

328+
await tenantDataRepository.DeleteAsync<User>(await Models.User.IdFormatAsync(RouteBinding, new User.IdKey { Email = email, UserIdentifier = phone ?? username }), queryAdditionalIds: true);
329+
328330
await oAuthRefreshTokenGrantDownBaseLogic.DeleteRefreshTokenGrantsAsync(email ?? phone ?? username, upPartyType: PartyTypes.Login);
329331

330-
await tenantDataRepository.DeleteAsync<User>(await Models.User.IdFormatAsync(RouteBinding, new User.IdKey { Email = email, UserIdentifier = phone ?? username }), queryAdditionalIds: true);
331332
return NoContent();
332333
}
333334
catch (FoxIDsDataException ex)

src/FoxIDs.Control/FoxIDs.Control.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.8.2</Version>
5+
<Version>2.8.3</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.8.2</Version>
5+
<Version>2.8.3</Version>
66
<RootNamespace>FoxIDs.Client</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.ControlClient/Models/ViewModels/Parties/LoginUpPartyViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class LoginUpPartyViewModel : IUpPartySessionLifetime, IUpPartyName, IUpP
9797
/// <summary>
9898
/// Default false.
9999
/// </summary>
100-
[Display(Name = "Delete refresh tokens if a user change password")]
100+
[Display(Name = "Delete refresh tokens if a user change / set password")]
101101
public bool DeleteRefreshTokenGrantsOnChangePassword { get; set; }
102102

103103
/// <summary>

src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.8.2</Version>
5+
<Version>2.8.3</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.ControlShared/Models/Api/Parties/LoginUpParty.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public bool? DisableSetPassword
7575
[Display(Name = "Users cannot set / reset password with email")]
7676
public bool DisableSetPasswordEmail { get; set; }
7777

78+
[Display(Name = "Delete refresh tokens if a user change / set password")]
7879
public bool DeleteRefreshTokenGrantsOnChangePassword { get; set; }
7980

8081
/// <summary>

src/FoxIDs.Shared/FoxIDs.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.8.2</Version>
5+
<Version>2.8.3</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.Shared/Logic/Seed/SeedLogic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private async Task SeedDbAsync(bool canSeedMaster, CancellationToken cancellatio
138138
{
139139
if (!await masterTenantDocumentsSeedLogic.MasterTenantExist())
140140
{
141-
throw new Exception("Master tenant not seeded.");
141+
throw new Exception("Master tenant not seeded. Waiting for Control to seed the master tenant...");
142142
}
143143
}
144144
}

src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.8.2</Version>
5+
<Version>2.8.3</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs/FoxIDs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
33
<TargetFramework>net9.0</TargetFramework>
4-
<Version>2.8.2</Version>
4+
<Version>2.8.3</Version>
55
<RootNamespace>FoxIDs</RootNamespace>
66
<Authors>Anders Revsgaard</Authors>
77
<Company>FoxIDs</Company>

0 commit comments

Comments
 (0)