aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/plugins.ts2
-rw-r--r--server/lib/auth.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/plugins.ts b/server/controllers/plugins.ts
index f12e1c0f5..f88a1632d 100644
--- a/server/controllers/plugins.ts
+++ b/server/controllers/plugins.ts
@@ -149,6 +149,6 @@ function handleAuthInPlugin (req: express.Request, res: express.Response) {
149 logger.debug('Forwarding auth plugin request in %s of plugin %s.', authOptions.authName, res.locals.registeredPlugin.npmName) 149 logger.debug('Forwarding auth plugin request in %s of plugin %s.', authOptions.authName, res.locals.registeredPlugin.npmName)
150 authOptions.onAuthRequest(req, res) 150 authOptions.onAuthRequest(req, res)
151 } catch (err) { 151 } catch (err) {
152 logger.error('Forward request error in auth %s of plugin %s.', authOptions.authName, res.locals.registeredPlugin.npmName) 152 logger.error('Forward request error in auth %s of plugin %s.', authOptions.authName, res.locals.registeredPlugin.npmName, { err })
153 } 153 }
154} 154}
diff --git a/server/lib/auth.ts b/server/lib/auth.ts
index 2ef77bc9c..1fa896f6e 100644
--- a/server/lib/auth.ts
+++ b/server/lib/auth.ts
@@ -68,7 +68,7 @@ async function handleTokenRevocation (req: express.Request, res: express.Respons
68 // } 68 // }
69 // }) 69 // })
70 70
71 return res.sendStatus(200) 71 return res.json()
72} 72}
73 73
74async function onExternalUserAuthenticated (options: { 74async function onExternalUserAuthenticated (options: {