From af5d860414749ff63dd41f511714b557d86f170d Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Mon, 30 Nov 2020 21:23:28 -0800 Subject: [PATCH] Set the node action to "XTRN" before running an auto-xtrn-upon-rlogin. prextrn.js keys off of the current node action to detect if the user is currently in the logon process. Defeat that check in this case (there is no logon process for auto-xtrn's). --- exec/logon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/logon.js b/exec/logon.js index 8af08c76ce..74cbccef04 100644 --- a/exec/logon.js +++ b/exec/logon.js @@ -42,6 +42,7 @@ if(options.email_validation == true) { // Check if we're being asked to auto-run an external (web interface external programs section uses this) if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) { var external_code = console.terminal.substring(5); + bbs.node_action = NODE_XTRN; if (!bbs.exec_xtrn(external_code)) { alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'")); } -- GitLab