diff options
author | CloudYu | 2018-11-27 22:13:18 +0800 |
---|---|---|
committer | CloudYu | 2018-11-27 22:14:37 +0800 |
commit | 35a9f72a06dd1ed28f16161028b5407dd3511ac0 (patch) | |
tree | 0ea66d57bcac135578752cee7b380f8efdbae696 /lib/web | |
parent | 8bace89cabd18fdd793c237f47f58ac96d5ef531 (diff) |
Fix typo
Signed-off-by: CloudYu <cloudyu322@gmail.com>
Diffstat (limited to 'lib/web')
-rw-r--r-- | lib/web/auth/oauth2/index.js | 4 | ||||
-rw-r--r-- | lib/web/auth/openid/index.js | 4 |
2 files changed, 4 insertions, 4 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 + '/' }) ) diff --git a/lib/web/auth/openid/index.js b/lib/web/auth/openid/index.js index 96f61807..c45c6d71 100644 --- a/lib/web/auth/openid/index.js +++ b/lib/web/auth/openid/index.js @@ -55,7 +55,7 @@ openIDAuth.post('/auth/openid', urlencodedParser, function (req, res, next) { // openID auth callback openIDAuth.get('/auth/openid/callback', passport.authenticate('openid', { - successReturnToOrRedirect: config.serverurl + '/', - failureRedirect: config.serverurl + '/' + successReturnToOrRedirect: config.serverURL + '/', + failureRedirect: config.serverURL + '/' }) ) |