Merge branch 'master' of ssh://numinibsd/git/base/enigma-bbs
This commit is contained in:
commit
46b9c6b4eb
|
@ -61,7 +61,7 @@ class PacketHeader {
|
||||||
this.prodData = 0x47694e45; // "ENiG"
|
this.prodData = 0x47694e45; // "ENiG"
|
||||||
|
|
||||||
this.capWord = 0x0001;
|
this.capWord = 0x0001;
|
||||||
this.capWordValidate = ((this.capWord & 0xff) << 8) | ((this.capWord >> 8) & 0xff);
|
this.capWordValidate = ((this.capWord & 0xff) << 8) | ((this.capWord >> 8) & 0xff); // swap
|
||||||
|
|
||||||
this.prodCodeHi = 0xfe; // see above
|
this.prodCodeHi = 0xfe; // see above
|
||||||
this.prodRevHi = 0;
|
this.prodRevHi = 0;
|
||||||
|
@ -91,14 +91,17 @@ class PacketHeader {
|
||||||
this.origNode = address.node;
|
this.origNode = address.node;
|
||||||
|
|
||||||
// See FSC-48
|
// See FSC-48
|
||||||
if(address.point) {
|
// :TODO: disabled for now until we have separate packet writers for 2, 2+, 2+48, and 2.2
|
||||||
|
/*if(address.point) {
|
||||||
this.auxNet = address.origNet;
|
this.auxNet = address.origNet;
|
||||||
this.origNet = -1;
|
this.origNet = -1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.origNet = address.net;
|
this.origNet = address.net;
|
||||||
this.auxNet = 0;
|
this.auxNet = 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
this.origNet = address.net;
|
||||||
|
this.auxNet = 0;
|
||||||
|
|
||||||
this.origZone = address.zone;
|
this.origZone = address.zone;
|
||||||
this.origZone2 = address.zone;
|
this.origZone2 = address.zone;
|
||||||
|
@ -586,9 +589,9 @@ function Packet(options) {
|
||||||
if(messageBodyData.tearLine) {
|
if(messageBodyData.tearLine) {
|
||||||
msg.meta.FtnProperty.ftn_tear_line = messageBodyData.tearLine;
|
msg.meta.FtnProperty.ftn_tear_line = messageBodyData.tearLine;
|
||||||
|
|
||||||
if(self.options.keepTearAndOrigin) {
|
if(self.options.keepTearAndOrigin) {
|
||||||
msg.message += `\r\n${messageBodyData.tearLine}\r\n`;
|
msg.message += `\r\n${messageBodyData.tearLine}\r\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(messageBodyData.seenBy.length > 0) {
|
if(messageBodyData.seenBy.length > 0) {
|
||||||
|
@ -602,9 +605,9 @@ function Packet(options) {
|
||||||
if(messageBodyData.originLine) {
|
if(messageBodyData.originLine) {
|
||||||
msg.meta.FtnProperty.ftn_origin = messageBodyData.originLine;
|
msg.meta.FtnProperty.ftn_origin = messageBodyData.originLine;
|
||||||
|
|
||||||
if(self.options.keepTearAndOrigin) {
|
if(self.options.keepTearAndOrigin) {
|
||||||
msg.message += `${messageBodyData.originLine}\r\n`;
|
msg.message += `${messageBodyData.originLine}\r\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -66,22 +66,27 @@
|
||||||
VM1: {
|
VM1: {
|
||||||
submit: true
|
submit: true
|
||||||
focus: true
|
focus: true
|
||||||
|
argName: navSelect
|
||||||
// :TODO: need a good way to localize these ... Standard Orig->Lookup seems good.
|
// :TODO: need a good way to localize these ... Standard Orig->Lookup seems good.
|
||||||
items: [ "login", "apply", "log off" ]
|
items: [ "login", "apply", "forgot pw", "log off" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
submit: {
|
submit: {
|
||||||
*: [
|
*: [
|
||||||
{
|
{
|
||||||
value: { 1: 0 }
|
value: { navSelect: 0 }
|
||||||
action: @menu:login
|
action: @menu:login
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
value: { 1: 1 },
|
value: { navSelect: 1 },
|
||||||
action: @menu:newUserApplicationPre
|
action: @menu:newUserApplicationPre
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
value: { 1: 2 },
|
value: { navSelect: 2 }
|
||||||
|
action: @menu:forgotPassword
|
||||||
|
}
|
||||||
|
{
|
||||||
|
value: { navSelect: 3 },
|
||||||
action: @menu:logoff
|
action: @menu:logoff
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -138,6 +143,28 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
forgotPassword: {
|
||||||
|
desc: Forgot password
|
||||||
|
prompt: forgotPasswordPrompt
|
||||||
|
submit: [
|
||||||
|
{
|
||||||
|
value: { username: null }
|
||||||
|
action: @systemMethod:sendForgotPasswordEmail
|
||||||
|
extraArgs: { next: "forgotPasswordSubmitted" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
forgotPasswordSubmitted: {
|
||||||
|
desc: Forgot password
|
||||||
|
art: FORGOTPWSENT
|
||||||
|
options: {
|
||||||
|
cls: true
|
||||||
|
pause: true
|
||||||
|
}
|
||||||
|
next: @systemMethod:logoff
|
||||||
|
}
|
||||||
|
|
||||||
// :TODO: Prompt Yes/No for logoff confirm
|
// :TODO: Prompt Yes/No for logoff confirm
|
||||||
fullLogoffSequence: {
|
fullLogoffSequence: {
|
||||||
desc: Logging Off
|
desc: Logging Off
|
||||||
|
@ -2276,7 +2303,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// File Area
|
// File Base
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
fileBase: {
|
fileBase: {
|
||||||
|
|
Loading…
Reference in New Issue