mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-22 21:02:03 +00:00
auth: Run removeInvalidTokens 5s after startup
This should prevent problem with the AuthToken purge on Sundays, as the service is either running on sunday or will be restarted there after. Also move base64url comment to right function Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
af993407b3
commit
6686fa58c5
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ export class AuthService {
|
|||
// This is a very high ceiling unlikely to hinder legitimate usage,
|
||||
// but should prevent possible attack vectors
|
||||
throw new TooManyTokensError(
|
||||
`User '${user.displayName}' has already 200 tokens and can't have anymore`,
|
||||
`User '${user.userName}' has already 200 tokens and can't have anymore`,
|
||||
);
|
||||
}
|
||||
const secret = await this.randomString(64);
|
||||
|
|
Loading…
Reference in a new issue