From 35a9f72a06dd1ed28f16161028b5407dd3511ac0 Mon Sep 17 00:00:00 2001 From: CloudYu Date: Tue, 27 Nov 2018 22:13:18 +0800 Subject: Fix typo Signed-off-by: CloudYu --- lib/web/auth/oauth2/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/web/auth/oauth2/index.js') diff --git a/lib/web/auth/oauth2/index.js b/lib/web/auth/oauth2/index.js index b9160f6e..57ab9b9a 100644 --- a/lib/web/auth/oauth2/index.js +++ b/lib/web/auth/oauth2/index.js @@ -100,7 +100,7 @@ oauth2Auth.get('/auth/oauth2', function (req, res, next) { // github auth callback oauth2Auth.get('/auth/oauth2/callback', passport.authenticate('oauth2', { - successReturnToOrRedirect: config.serverurl + '/', - failureRedirect: config.serverurl + '/' + successReturnToOrRedirect: config.serverURL + '/', + failureRedirect: config.serverURL + '/' }) ) -- cgit v1.2.3