* Fix version to represent alpha
* Some fixes to message areas * New NU-MAYA prompt
This commit is contained in:
parent
df477667b0
commit
68b8af7975
|
@ -10,6 +10,7 @@ var _ = require('lodash');
|
|||
var assert = require('assert');
|
||||
|
||||
exports.getAvailableMessageAreas = getAvailableMessageAreas;
|
||||
exports.getDefaultMessageArea = getDefaultMessageArea;
|
||||
exports.getMessageAreaByName = getMessageAreaByName;
|
||||
exports.changeMessageArea = changeMessageArea;
|
||||
exports.getMessageListForArea = getMessageListForArea;
|
||||
|
@ -20,6 +21,10 @@ function getAvailableMessageAreas() {
|
|||
return Config.messages.areas;
|
||||
}
|
||||
|
||||
function getDefaultMessageArea() {
|
||||
return getAvailableMessageAreas()[0];
|
||||
}
|
||||
|
||||
function getMessageAreaByName(areaName) {
|
||||
areaName = areaName.toLowerCase();
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ var Log = require('../core/logger.js').log;
|
|||
var MenuModule = require('../core/menu_module.js').MenuModule;
|
||||
var ViewController = require('../core/view_controller.js').ViewController;
|
||||
var Config = require('../core/config.js').config;
|
||||
var sysMenuMethod = require('../core/system_menu_method.js');
|
||||
var getDefaultMessageArea = require('../core/message_area.js').getDefaultMessageArea;
|
||||
|
||||
var util = require('util');
|
||||
|
||||
|
@ -94,6 +96,8 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
|||
web_address : formData.value.web,
|
||||
account_created : new Date().toISOString(),
|
||||
|
||||
message_area_name : getDefaultMessageArea().name,
|
||||
|
||||
// :TODO: This is set in User.create() -- proabbly don't need it here:
|
||||
//account_status : Config.users.requireActivation ? user.User.AccountStatus.inactive : user.User.AccountStatus.active,
|
||||
|
||||
|
@ -118,7 +122,11 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
|||
if(user.User.AccountStatus.inactive === client.user.properties.account_status) {
|
||||
client.gotoMenuModule( { name : extraArgs.inactive } );
|
||||
} else {
|
||||
client.gotoMenuModule( { name : menuConfig.next } );
|
||||
//
|
||||
// If active now, we need to call login() to authenticate
|
||||
//
|
||||
sysMenuMethod.login(callingMenu, formData, extraArgs);
|
||||
// client.gotoMenuModule( { name : menuConfig.next } );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
},
|
||||
"menuCommand" : {
|
||||
"art" : "menu_prompt.ans",
|
||||
art: MNUPRMT
|
||||
"mci" : {
|
||||
"ET2" : {
|
||||
"argName" : "command",
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "enigma-bbs",
|
||||
"version" : "0.0.1-beta",
|
||||
"version" : "0.0.1-alpha",
|
||||
"description" : "ENiGMA½ Bulletin Board System",
|
||||
"author" : "Bryan Ashby <bryan@l33t.codes>",
|
||||
"dependencies" : {
|
||||
|
|
Loading…
Reference in New Issue