diff --git a/src/ts/server/routes/auth.ts b/src/ts/server/routes/auth.ts index 467c7a7..e8db229 100644 --- a/src/ts/server/routes/auth.ts +++ b/src/ts/server/routes/auth.ts @@ -7,7 +7,7 @@ import { MINUTE } from '../../common/constants'; import { fromNow, hasFlag, includes, isError, uniqById } from '../../common/utils'; import { BannedMuted, Settings, ServerConfig, AccountFlags, ServerLiveSettings } from '../../common/adminInterfaces'; import { Account, IAccount, Origin, IOrigin } from '../db'; -import { limit, auth as authRequest, wrap } from '../requestUtils'; +import { limit, auth as authRequest, wrap, hash } from '../requestUtils'; import { CreateAccountOptions, findOrCreateAccount, SuspiciousCheckers, getAccountAlertMessage } from '../accountUtils'; import { createReporter, createFromRequest } from '../reporter'; import { logger, logServer, system } from '../logger'; @@ -292,7 +292,7 @@ export function authRoutes( }); }); - app.post('/sign-out', wrap(server, async req => { + app.post('/sign-out', hash, wrap(server, async req => { kickCurrentUser(req); await new Promise(resolve => req.logout(error => { if (error) {