Re: login via user number
By: Ner to Digital Man on Thu Oct 26 2023 11:52 am
Re: login via user number
By: Digital Man to Ner on Wed Oct 25 2023 12:24 pm
Hello, and thanks for that reply. Sorry for the duplicate message on the group, it must have not propagated until I re-wrote it. This did the trick--I notice that there's an option in login.js to allow for the legacy logon prompt. Is this something, should I choose to set it, enabled via a modification / mod to login.js?
The legacy prompt is always sent by the stock login.js (not an option), it's just not visible to the user. The whole point of sending it is to trigger legacy login scripts (QWKnet call-out scripts) to recognize it as a login prompt. If you prefer a different login prompt (visible to the user), you'd need to copy login.js to your mods directory and then just edit these strings in there:
var str = "\x01n\x01h\x01cEnter \x01wUser Name";
if(system.login_settings & LOGIN_USERNUM)
str += "\x01c or \x01wNumber";
if(!(system.settings&SYS_CLOSED))
str += "\x01c or '\x01yNew\x01c'";
if(guest)
str += "\x01c or '\x01yGuest\x01c'";
str += "\r\nLogin: \x01w";
--
digital man (rob)
Rush quote #44:
The shifting shafts of shining weave the fabric of their dreams
Norco, CA WX: 70.0øF, 61.0% humidity, 1 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)