* Fix word wrap bug introduced prior -- use 'expand' not 'expandTabs'

* Notes on better access of views by ID
* Work on apply process a bit
* Replies can now be saved
This commit is contained in:
Bryan Ashby 2015-09-20 01:29:07 -06:00
parent a6d00b05a7
commit b15d9a0bf8
7 changed files with 71 additions and 7 deletions

View file

@ -32,7 +32,7 @@ function validateApplicationData(formData, cb) {
}
if(isNaN(Date.parse(formData.value.birthdate))) {
cb('Invalid birthdate!');
cb('Invalid birthdate!', [ 3 ] );
return;
}
@ -109,6 +109,8 @@ function submitApplication(callingMenu, formData, extraArgs) {
newUser.create( { password : formData.value.password }, function created(err) {
if(err) {
Log.info( { error : err, username : formData.value.username }, 'New user creation failed');
client.gotoMenuModule( { name : extraArgs.error } );
} else {
Log.info( { username : formData.value.username, userId : newUser.userId }, 'New user created');