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 art: USERLOG
next: fullLoginSequenceLoginArt next: fullLoginSequenceLoginArt
config: { config: {
tooNode: { tooNodeMenu: loginAttemptTooNode
art: TOONODE
}
} }
form: { form: {
0: { 0: {
@ -114,6 +112,14 @@
} }
} }
loginAttemptTooNode: {
art: TOONODE
options: {
cls: true
nextTimeout: 2000
}
}
logoff: { logoff: {
art: LOGOFF art: LOGOFF
next: @systemMethod:logoff next: @systemMethod:logoff
@ -122,6 +128,7 @@
TODO: display PRINT before this (Obv/2) or NEWUSER1 (Mystic) TODO: display PRINT before this (Obv/2) or NEWUSER1 (Mystic)
*/ */
newUserApplication: { newUserApplication: {
module: nua
art: NUA art: NUA
next: [ next: [
{ {
@ -141,6 +148,7 @@
focus: true focus: true
argName: username argName: username
maxLength: @config:users.usernameMax maxLength: @config:users.usernameMax
validate: @systemMethod:validateUserNameAvail
} }
ET2: { ET2: {
argName: realName argName: realName
@ -149,6 +157,7 @@
MET3: { MET3: {
argName: birthdate argName: birthdate
maskPattern: "####/##/##" maskPattern: "####/##/##"
validate: @systemMethod:validateBirthdate
} }
ME4: { ME4: {
argName: sex argName: sex
@ -166,6 +175,7 @@
ET7: { ET7: {
argName: email argName: email
maxLength: 255 maxLength: 255
validate: @systemMethod:validateEmailAvail
} }
ET8: { ET8: {
argName: web argName: web
@ -175,11 +185,13 @@
argName: password argName: password
password: true password: true
maxLength: @config:users.passwordMax maxLength: @config:users.passwordMax
validate: @systemMethod:validatePasswordSpec
} }
ET10: { ET10: {
argName: passwordConfirm argName: passwordConfirm
password: true password: true
maxLength: @config:users.passwordMax maxLength: @config:users.passwordMax
validate: @method:validatePassConfirmMatch
} }
TM12: { TM12: {
argName: submission argName: submission
@ -445,6 +457,13 @@
module: last_callers module: last_callers
art: LASTCALL art: LASTCALL
options: { pause: true } options: { pause: true }
next: fullLoginSequenceWhosOnline
}
fullLoginSequenceWhosOnline: {
desc: Who's Online
module: whos_online
art: WHOSON
options: { pause: true }
next: fullLoginSequenceSysStats next: fullLoginSequenceSysStats
} }
fullLoginSequenceSysStats: { fullLoginSequenceSysStats: {
@ -613,27 +632,31 @@
value: { command: "2" } value: { command: "2" }
action: @menu:doorLORD 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: { doorPimpWars: {
desc: Playing PimpWars desc: Playing PimpWars
module: abracadabra module: abracadabra
config: { config: {
name: PimpWars name: PimpWars
dropFileType: DORINFO dropFileType: DORINFO
cmd: /usr/bin/dosemu cmd: /home/nuskooler/DOS/scripts/pimpwars.sh
args: [ args: [
"-quiet", "-f", "/home/nuskooler/DOS/X/LORD/dosemu.conf", "X:\\PW\\START.BAT {dropFile} {node}" "{node}",
"{dropFile}",
"{srvPort}",
], ],
nodeMax: 1 nodeMax: 1
tooManyArt: DOORMANY tooManyArt: DOORMANY
io: socket
} }
}, }
doorLORD: { doorLORD: {
desc: Playing L.O.R.D. desc: Playing L.O.R.D.
module: abracadabra 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 // Message Area Menu
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
@ -818,7 +857,7 @@
} }
{ {
value: { 1: 3 } value: { 1: 3 }
action: @menu:messageArea action: @systemMethod:prevMenu
} }
{ {
value: { 1: 4 } value: { 1: 4 }
@ -1034,6 +1073,7 @@
argName: subject argName: subject
maxLength: 72 maxLength: 72
submit: true submit: true
// :TODO: Validate -> close/cancel if empty
} }
} }
submit: { submit: {