closes #613, fixed allowRegistration incase its undefined
Merge branch 'master' of https://github.com/designcreateplay/NodeBB