Fix typo
Signed-off-by: CloudYu <cloudyu322@gmail.com>
This commit is contained in:
parent
8bace89cab
commit
35a9f72a06
2 changed files with 4 additions and 4 deletions
|
@ -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 + '/'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
@ -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 + '/'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue