mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Fixes flaky login security test rolling a user with TOTP enabled.
This commit is contained in:
1 parent
a13eeee43e
commit
3508ae346f
1 file changed
+1
+1
@@ -264,6 +264,7 @@ public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
|
|||||||
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
|
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
|
||||||
|
|
||||||
UserEntity user = _userEntityFixture.Create(username: _testUsername, password: _hashService.HashString("TestPass123!"));
|
UserEntity user = _userEntityFixture.Create(username: _testUsername, password: _hashService.HashString("TestPass123!"));
|
||||||
|
user.TotpSecret = null;
|
||||||
|
|
||||||
dbContext.Users.Add(user);
|
dbContext.Users.Add(user);
|
||||||
await dbContext.SaveChangesAsync();
|
await dbContext.SaveChangesAsync();
|
||||||
|
|||||||
Reference in new issue
Block a user