Subj : Some help with login/logon and shell javascript To : alterego From : Digital Man Date : Tue May 26 2020 06:31 pm Re: Some help with login/logon and shell javascript By: alterego to Digital Man on 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 - EXIT: > > al>> 5/26 17:00:33 term Node 1 !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. You must call bbs.logon(). > If I call it, and it only does: > > // ANSItex Logon Shell > console.print('LOGON...'); > > (only 2 lines) bbs.logon() does a lot more than just call your logon module. See sbbs_t::logon() in src/sbbs3/logon.cpp if you're curious. > I dont get the error message. Your logon module is not part of the solution or the problem. > 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. Correct. > Should I be setting SS_USERON somewhere before exiting if I dont want to > call logon.js? No. Just call bbs.logon(). digital man Synchronet "Real Fact" #53: Synchronet Blackjack was the first multi-node/multi-user game for Synchronet. Norco, CA WX: 83.0øF, 31.0% humidity, 12 mph ENE wind, 0.00 inches rain/24hrs .