For a while I've been using Nightfox's DDLoginMatrix mod to customize the logon process on my BBS.
However, I recently got the itch to try writing my own logon script. I wanted to build something using the Frame.js, Tree.js, and Typeahead.js libraries.
Anyway, I have something now that's working, but I had a few questions for DM (or whoever might know).
The first: is there a way to do something like bbs.logon() method, but without the builtin password prompt? I'm looking for a way to handle the password input prompt myself. Once I had the user's input, I would pass it to the logon method.
Second: Is there a way to do the same with the system password? If my script detected the user was attempting to logon to a sysop-level account, I would build my own password prompt, then pass the user's entered system password to the logon() method.
I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.
I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.
Second: Is there a way to do the same with the system password? If my
script detected the user was attempting to logon to a sysop-level
account, I would build my own password prompt, then pass the user's
entered system password to the logon() method.
Yes, I could add another optional system_password parameter to bbs.login().
Re: Methods for logon
By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm
I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.
Yes, bbs.login() is what I meant. Sorry, I get those mixed up all the time.
And your proposal would be perfect. My BBS runs off the the CVS, anyway, so I'd be happy with that.
Re: Methods for logon
By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm
I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.
Second: Is there a way to do the same with the system password? If my
script detected the user was attempting to logon to a sysop-level
account, I would build my own password prompt, then pass the user's
entered system password to the logon() method.
Yes, I could add another optional system_password parameter to bbs.login().
I think that would be useful for my login matrix as well.
Yes, I could add another optional system_password parameter to
bbs.login().
I think that would be useful for my login matrix as well.
Give the new method a try a let me know how it works for you.
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 203:09:03 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,766 |