aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users/token.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/users/token.ts')
-rw-r--r--server/controllers/api/users/token.ts4
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 @@
1import { handleIdAndPassLogin, handleTokenRevocation } from '@server/lib/auth' 1import { handleLogin, handleTokenRevocation } from '@server/lib/auth'
2import * as RateLimit from 'express-rate-limit' 2import * as RateLimit from 'express-rate-limit'
3import { CONFIG } from '@server/initializers/config' 3import { CONFIG } from '@server/initializers/config'
4import * as express from 'express' 4import * as express from 'express'
@@ -14,7 +14,7 @@ const loginRateLimiter = RateLimit({
14 14
15tokensRouter.post('/token', 15tokensRouter.post('/token',
16 loginRateLimiter, 16 loginRateLimiter,
17 handleIdAndPassLogin, 17 handleLogin,
18 tokenSuccess 18 tokenSuccess
19) 19)
20 20