Commit 57afe753 authored by rswindell's avatar rswindell
Browse files

Added SCFG->System->Toggle Option->Require Sys Pass for Sysop Login

(should default to current behavior: Yes). Set to No to not require the system
password while logging in as a system operator (level >= 90). The system
password will be required while logged-on and performing administrative-like
operations.
Added by request from Altere.
parent 37c7fee7
......@@ -129,7 +129,7 @@ bool sbbs_t::answer()
console&=~(CON_R_ECHOX|CON_L_ECHOX);
}
else {
if(REALSYSOP) {
if(REALSYSOP && (cfg.sys_misc&SM_SYSPASSLOGIN)) {
rioctl(IOFI); /* flush input buffer */
if(!chksyspass())
bputs(text[InvalidLogon]);
......@@ -229,7 +229,7 @@ bool sbbs_t::answer()
}
else {
SAFECOPY(rlogin_pass, tmp);
if(REALSYSOP) {
if(REALSYSOP && (cfg.sys_misc&SM_SYSPASSLOGIN)) {
rioctl(IOFI); /* flush input buffer */
if(!chksyspass())
bputs(text[InvalidLogon]);
......
......@@ -138,7 +138,7 @@ int sbbs_t::login(char *username, char *pw_prompt, const char* user_pw, const ch
useron.misc=useron_misc;
return(LOGIC_FALSE);
}
if(REALSYSOP && !chksyspass(sys_pw)) {
if(REALSYSOP && (cfg.sys_misc&SM_SYSPASSLOGIN) && !chksyspass(sys_pw)) {
bputs(text[InvalidLogon]);
useron.number=0;
useron.misc=useron_misc;
......
......@@ -167,7 +167,7 @@ typedef struct js_callback {
#define SM_CELERITY (1L<<10) /* Expand Celerity color codes in messages */
#define SM_RENEGADE (1L<<11) /* Expand Renegade color codes in messages */
#define SM_ECHO_PW (1L<<12) /* Echo passwords locally */
#define SM_UNUSED (1L<<13) /* Defaults to *on* (used to SM_LOCAL_TZ) */
#define SM_SYSPASSLOGIN (1L<<13) /* Require system password for sysop login */
#define SM_AUTO_DST (1L<<14) /* Automatic Daylight Savings Toggle (US) */
#define SM_R_SYSOP (1L<<15) /* Allow remote sysop logon/commands */
#define SM_QUOTE_EM (1L<<16) /* Allow quoting of e-mail */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment