fixed signup disabled
This commit is contained in:
parent
0d03decee4
commit
d10679aeac
@ -27,6 +27,7 @@ module.exports = function(app) {
|
||||
|
||||
// Setting up the users authentication api
|
||||
if(!config.signupDisabled) {
|
||||
console.log('signupDisabled');
|
||||
app.route('/auth/signup').post(users.signup);
|
||||
}
|
||||
app.route('/auth/signin').post(users.signin);
|
||||
|
||||
2
config/env/all.js
vendored
2
config/env/all.js
vendored
@ -12,7 +12,7 @@ module.exports = {
|
||||
|
||||
reCAPTCHA_Key: process.env.reCAPTCHA_KEY || '',
|
||||
|
||||
signupDisabled: false ? (!process.env.SIGNUP_DISABLED || !process.env.SIGNUP_DISABLED === 'false') : true,
|
||||
signupDisabled: !!process.env.SIGNUP_DISABLED,
|
||||
baseUrl: '',
|
||||
tempUserCollection: 'temporary_users',
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user