Update passport.js

pull/55/head
Dominik Michno 2019-05-03 11:08:50 -04:00 committed by GitHub
parent 82d272131a
commit 6e08ce0d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -48,9 +48,7 @@ function PassportHelper () {
const protocol = strategies[key].protocol const protocol = strategies[key].protocol
const callbackURL = strategies[key].callback const callbackURL = strategies[key].callback
let baseURL = '' let baseURL = ''
if (process.env.BASE_URL) { if (sails.config.custom.baseURL && sails.config.custom.baseURL !== null) {
baseURL = process.env.BASE_URL
} else if (sails.config.custom.baseURL && sails.config.custom.baseURL !== null) {
baseURL = sails.config.custom.baseURL baseURL = sails.config.custom.baseURL
} else { } else {
sails.log.warn('Please add \'appUrl\' to configuration') sails.log.warn('Please add \'appUrl\' to configuration')