Subj : Some help with login/logon and shell javascript
To : Digital Man
From : alterego
Date : Wed May 27 2020 09:58 am
Re: Some help with login/logon and shell javascript
By: Digital Man to alterego on Tue May 26 2020 04:28 pm
> al>> 5/26 17:00:33 term Node 1 <Test> - EXIT:
> al>> 5/26 17:00:33 term Node 1 <Test> !ERROR 0 (Success) in answer.cpp
> al>> line 488 (answer) checking "User not logged on" access=0
DM> No. I'm guessing your call to bbs.logon() is failing before it can set
DM> SS_USERON, so your log output should give the details why.
Not sure that I follow (and the above is the only thing in the error log):
Here is my call:
if (bbs.login(fo.frame_fields[0].fvalue,null,fo.frame_fields[1].fvalue)) {
log(LOG_DEBUG,' - User:'+JSON.stringify(bbs.user));
bbs.logon();
log(LOG_DEBUG,' - EXIT:');
exit();
}
If I comment out bbs.logon(), I get the error message. If I call it, and it only does:
// ANSItex Logon Shell
console.print('LOGON...');
(only 2 lines)
I dont get the error message.
I also made logon.js a zero byte file, and the same result. Success if I call bbs.logon(), failure if I dont call it.
Should I be setting SS_USERON somewhere before exiting if I dont want to call logon.js? How?
(Oh, and bbs.user is undefined until I exit.)
...����
... The flush toilet is the basis of Western civilisation.
---
� Synchronet � Alterant | an SBBS in Docker on Pi!