Skip to content
Snippets Groups Projects
Commit 0f597018 authored by rswindell's avatar rswindell
Browse files

System password is now required to create the first user (sysop) account.

parent 935f8aff
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,9 @@ BOOL sbbs_t::newuser()
strcpy(useron.alias,"New"); /* just for status line */
strcpy(useron.modem,connection);
if(!lastuser(&cfg)) { /* Automatic sysop access for first user */
bprintf("Creating sysop account... System password required.\r\n");
if(!chksyspass())
return(FALSE);
useron.level=99;
useron.exempt=useron.flags1=useron.flags2=0xffffffffUL;
useron.flags3=useron.flags4=0xffffffffUL;
......
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