Some fixes and security updates

This commit is contained in:
tyuXX 2026-10-24 14:53:10 +03:00
parent 43acf366af
commit 68e6fa2353
22 changed files with 1114 additions and 58 deletions

View file

@ -16,6 +16,7 @@ public class AuthServiceTests : IDisposable
private readonly ChatDatabase _db;
private readonly ServerOptions _options;
private readonly AuthService _auth;
private readonly InviteTokenService _inviteTokenService;
public AuthServiceTests()
{
@ -26,7 +27,8 @@ public class AuthServiceTests : IDisposable
{
ServerWidePassword = "SecretServerPass"
};
_auth = new AuthService(_db, _options);
_inviteTokenService = new InviteTokenService(_db, _options.InviteTokenExpirationHours);
_auth = new AuthService(_db, _options, _inviteTokenService);
}
public void Dispose()