diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/token.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/users/token.ts b/server/controllers/api/users/token.ts index f4be228f6..41aa26769 100644 --- a/server/controllers/api/users/token.ts +++ b/server/controllers/api/users/token.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { handleIdAndPassLogin, handleTokenRevocation } from '@server/lib/auth' | 1 | import { handleLogin, handleTokenRevocation } from '@server/lib/auth' |
2 | import * as RateLimit from 'express-rate-limit' | 2 | import * as RateLimit from 'express-rate-limit' |
3 | import { CONFIG } from '@server/initializers/config' | 3 | import { CONFIG } from '@server/initializers/config' |
4 | import * as express from 'express' | 4 | import * as express from 'express' |
@@ -14,7 +14,7 @@ const loginRateLimiter = RateLimit({ | |||
14 | 14 | ||
15 | tokensRouter.post('/token', | 15 | tokensRouter.post('/token', |
16 | loginRateLimiter, | 16 | loginRateLimiter, |
17 | handleIdAndPassLogin, | 17 | handleLogin, |
18 | tokenSuccess | 18 | tokenSuccess |
19 | ) | 19 | ) |
20 | 20 | ||