Update passport.js
parent
82d272131a
commit
6e08ce0d2b
|
@ -48,9 +48,7 @@ function PassportHelper () {
|
|||
const protocol = strategies[key].protocol
|
||||
const callbackURL = strategies[key].callback
|
||||
let baseURL = ''
|
||||
if (process.env.BASE_URL) {
|
||||
baseURL = process.env.BASE_URL
|
||||
} else if (sails.config.custom.baseURL && sails.config.custom.baseURL !== null) {
|
||||
if (sails.config.custom.baseURL && sails.config.custom.baseURL !== null) {
|
||||
baseURL = sails.config.custom.baseURL
|
||||
} else {
|
||||
sails.log.warn('Please add \'appUrl\' to configuration')
|
||||
|
|
Loading…
Reference in New Issue