Lots of updates including usage of validation framework and nua module

This commit is contained in:
Bryan Ashby 2015-12-10 21:46:08 -07:00
parent cb3ae84bc5
commit c9f287e5fd
1 changed files with 53 additions and 13 deletions

View File

@ -77,9 +77,7 @@
art: USERLOG
next: fullLoginSequenceLoginArt
config: {
tooNode: {
art: TOONODE
}
tooNodeMenu: loginAttemptTooNode
}
form: {
0: {
@ -114,6 +112,14 @@
}
}
loginAttemptTooNode: {
art: TOONODE
options: {
cls: true
nextTimeout: 2000
}
}
logoff: {
art: LOGOFF
next: @systemMethod:logoff
@ -122,6 +128,7 @@
TODO: display PRINT before this (Obv/2) or NEWUSER1 (Mystic)
*/
newUserApplication: {
module: nua
art: NUA
next: [
{
@ -141,6 +148,7 @@
focus: true
argName: username
maxLength: @config:users.usernameMax
validate: @systemMethod:validateUserNameAvail
}
ET2: {
argName: realName
@ -149,6 +157,7 @@
MET3: {
argName: birthdate
maskPattern: "####/##/##"
validate: @systemMethod:validateBirthdate
}
ME4: {
argName: sex
@ -166,6 +175,7 @@
ET7: {
argName: email
maxLength: 255
validate: @systemMethod:validateEmailAvail
}
ET8: {
argName: web
@ -175,11 +185,13 @@
argName: password
password: true
maxLength: @config:users.passwordMax
validate: @systemMethod:validatePasswordSpec
}
ET10: {
argName: passwordConfirm
password: true
maxLength: @config:users.passwordMax
validate: @method:validatePassConfirmMatch
}
TM12: {
argName: submission
@ -445,7 +457,14 @@
module: last_callers
art: LASTCALL
options: { pause: true }
next: fullLoginSequenceSysStats
next: fullLoginSequenceWhosOnline
}
fullLoginSequenceWhosOnline: {
desc: Who's Online
module: whos_online
art: WHOSON
options: { pause: true }
next: fullLoginSequenceSysStats
}
fullLoginSequenceSysStats: {
desc: System Stats
@ -613,27 +632,31 @@
value: { command: "2" }
action: @menu:doorLORD
}
{
value: { command: "4" }
action: @menu:doorTradeWars2002BBSLink
}
]
}
/*
The 'abracadabra' module's config.args accepts the following format objects:
{dropFile} - Path to generated dropfile
{node} - Node number
*/
doorPimpWars: {
desc: Playing PimpWars
module: abracadabra
config: {
name: PimpWars
dropFileType: DORINFO
cmd: /usr/bin/dosemu
cmd: /home/nuskooler/DOS/scripts/pimpwars.sh
args: [
"-quiet", "-f", "/home/nuskooler/DOS/X/LORD/dosemu.conf", "X:\\PW\\START.BAT {dropFile} {node}"
"{node}",
"{dropFile}",
"{srvPort}",
],
nodeMax: 1
tooManyArt: DOORMANY
io: socket
}
},
}
doorLORD: {
desc: Playing L.O.R.D.
module: abracadabra
@ -646,6 +669,22 @@
]
}
}
//
// TradeWars 2000 example via BBSLink
//
// You will need to register with BBSLink to obtain sysCode, authCode and schemeCode
//
doorTradeWars2002BBSLink: {
desc: Playing TW 2002 (BBSLink)
module: bbs_link
config: {
sysCode: XXXXXXXX
authCode: XXXXXXXX
schemeCode: XXXXXXXX
door: tw
}
}
///////////////////////////////////////////////////////////////////////
// Message Area Menu
///////////////////////////////////////////////////////////////////////
@ -818,7 +857,7 @@
}
{
value: { 1: 3 }
action: @menu:messageArea
action: @systemMethod:prevMenu
}
{
value: { 1: 4 }
@ -1034,6 +1073,7 @@
argName: subject
maxLength: 72
submit: true
// :TODO: Validate -> close/cancel if empty
}
}
submit: {