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.
This commit is contained in:
Christoph (Sheogorath) Kern 2018-11-28 13:27:38 +01:00 committed by GitHub
commit b749d50e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ oauth2Auth.get('/auth/oauth2', function (req, res, next) {
// github auth callback // github auth callback
oauth2Auth.get('/auth/oauth2/callback', oauth2Auth.get('/auth/oauth2/callback',
passport.authenticate('oauth2', { passport.authenticate('oauth2', {
successReturnToOrRedirect: config.serverurl + '/', successReturnToOrRedirect: config.serverURL + '/',
failureRedirect: config.serverurl + '/' failureRedirect: config.serverURL + '/'
}) })
) )

View file

@ -55,7 +55,7 @@ openIDAuth.post('/auth/openid', urlencodedParser, function (req, res, next) {
// openID auth callback // openID auth callback
openIDAuth.get('/auth/openid/callback', openIDAuth.get('/auth/openid/callback',
passport.authenticate('openid', { passport.authenticate('openid', {
successReturnToOrRedirect: config.serverurl + '/', successReturnToOrRedirect: config.serverURL + '/',
failureRedirect: config.serverurl + '/' failureRedirect: config.serverURL + '/'
}) })
) )