Some fixes and security updates
This commit is contained in:
parent
43acf366af
commit
68e6fa2353
22 changed files with 1114 additions and 58 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue