summaryrefslogtreecommitdiff
path: root/lib/web/auth/oauth2/index.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-11-28 13:27:38 +0100
committerGitHub2018-11-28 13:27:38 +0100
commitb749d50e207379e927743f1ca72e55868191814b (patch)
treeb8a064df56387fbd156c9607d2b6a4ad27c8105b /lib/web/auth/oauth2/index.js
parent769a1c4ccbebfa92d839bc2a6ec2b54017154a0a (diff)
parent35a9f72a06dd1ed28f16161028b5407dd3511ac0 (diff)
Merge pull request #1082 from cloudyu/pull
Fix wrong config options In `./lib/web/auth/` some config includes still used `config.serverurl` instead of the correct `config.serverURL`. This causes wrong URL in worst case. This patch should fix those problems and migrate the wrong statements to camelcase.
Diffstat (limited to 'lib/web/auth/oauth2/index.js')
-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 + '/'
})
)