mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
* Delete mods/login.js (not used)
* More fallbackMenuModule & gotoMenuModule clean up -- should all be using new system now
This commit is contained in:
parent
f7a7423b32
commit
b1be5cdff4
12 changed files with 16 additions and 85 deletions
|
@ -124,18 +124,21 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
|||
if(err) {
|
||||
Log.info( { error : err, username : formData.value.username }, 'New user creation failed');
|
||||
|
||||
client.gotoMenuModule( { name : extraArgs.error } );
|
||||
callingMenu.gotoMenu(extraArgs.error, function result(err) {
|
||||
if(err) {
|
||||
callingMenu.prevMenu();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Log.info( { username : formData.value.username, userId : newUser.userId }, 'New user created');
|
||||
|
||||
if(user.User.AccountStatus.inactive === client.user.properties.account_status) {
|
||||
client.gotoMenuModule( { name : extraArgs.inactive } );
|
||||
callingMenu.gotoMenu(extraArgs.inactive);
|
||||
} else {
|
||||
//
|
||||
// If active now, we need to call login() to authenticate
|
||||
//
|
||||
sysMenuMethod.login(callingMenu, formData, extraArgs);
|
||||
// client.gotoMenuModule( { name : menuConfig.next } );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue