fixed signup disabled

This commit is contained in:
David Baldwynn 2016-05-17 04:38:42 -07:00
parent 0d03decee4
commit d10679aeac
2 changed files with 2 additions and 1 deletions

View File

@ -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
View File

@ -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',