summaryrefslogtreecommitdiff
path: root/lib/web/auth/oauth2
diff options
context:
space:
mode:
authorCloudYu2018-11-27 22:13:18 +0800
committerCloudYu2018-11-27 22:14:37 +0800
commit35a9f72a06dd1ed28f16161028b5407dd3511ac0 (patch)
tree0ea66d57bcac135578752cee7b380f8efdbae696 /lib/web/auth/oauth2
parent8bace89cabd18fdd793c237f47f58ac96d5ef531 (diff)
Fix typo
Signed-off-by: CloudYu <cloudyu322@gmail.com>
Diffstat (limited to '')
-rw-r--r--lib/web/auth/oauth2/index.js4
1 files changed, 2 insertions, 2 deletions
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 + '/'
})
)