Subj : New user script
To : All
From : Nightfox
Date : Wed Sep 03 2014 08:37 pm
Recently I have been working on a custom new user application script in
JavaScript. I'm to a point where it asks the relevant questions, and now I
want it to actually create the user account. It seems there might be two ways
of doing this:
1. Set the appropriate fields in the user object which exists in memory
2. Create a new user object with all the information provided by the logged-in
user
It seems that both of these methods have their own issues. I'd like to let the
new user continue and log on to the BBS, as in the default new user process,
but during my testing, the BBS disconnects when I'm done creating a new user
for some reason. Also, I'd like to show the user config at the end (using
bbs.user_config()) so that the user can finalize their settings before
continuing, but using method #1, it doesn't seem to be saving their information
- It says they're user #0 and doesn't output their handle, and it also says
their terminal type is TTY (instead of ANSI/ASCII).
I've seen a new user application script (written by Merlin/Tracker1 of The
Roughnecks BBS), but it takes the route of creating a new user object and
emailing the password to the user and then disconnecting. I'd rather not have
to disconnect the user after they create a new user account.
Has anyone written their own custom new user script and found a way around
this?
Nightfox
---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com