Skip to content
Snippets Groups Projects
Commit 45bcd5ac authored by rswindell's avatar rswindell
Browse files

If the SSH or RLogin-supplied username is in the name.can, don't start the

new user signup process with that name (just fall-through to a normal login
prompt).
parent 85ac9a5f
No related branches found
No related tags found
No related merge requests found
......@@ -423,8 +423,13 @@ bool sbbs_t::answer()
SAFECOPY(client_ipaddr, cid); /* Over-ride IP address with Caller-ID info */
SAFECOPY(useron.comp,client_name);
if(!useron.number && rlogin_name[0]!=0 && !(cfg.sys_misc&SM_CLOSED) && !matchuser(&cfg, rlogin_name, /* Sysop alias: */FALSE)) {
lprintf(LOG_INFO,"Node %d UNKNOWN %s-specified username: '%s', starting new user signup",cfg.node_num,client.protocol,rlogin_name);
if(!useron.number
&& rlogin_name[0]!=0
&& !(cfg.sys_misc&SM_CLOSED)
&& !matchuser(&cfg, rlogin_name, /* Sysop alias: */FALSE)
&& !::trashcan(&cfg, rlogin_name, "name")) {
lprintf(LOG_INFO, "Node %d UNKNOWN %s-specified username: '%s', starting new user signup"
,cfg.node_num,client.protocol,rlogin_name);
bprintf("%s: %s\r\n", text[UNKNOWN_USER], rlogin_name);
newuser();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment