mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 08:51:51 +02:00
* 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:
parent
a6d00b05a7
commit
b15d9a0bf8
7 changed files with 71 additions and 7 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue