Skip to content
Snippets Groups Projects
Commit 11b3738c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix compile error introduced in previous commit.

parent 065a3653
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #172 passed
...@@ -248,7 +248,7 @@ bool sbbs_t::logon() ...@@ -248,7 +248,7 @@ bool sbbs_t::logon()
if(cfg.sys_misc&SM_PWEDIT && yesno(text[NewPasswordQ])) if(cfg.sys_misc&SM_PWEDIT && yesno(text[NewPasswordQ]))
while(online) { while(online) {
bprintf(text[NewPasswordPromptFmt], cfg->min_pwlen, LEN_PASS); bprintf(text[NewPasswordPromptFmt], cfg.min_pwlen, LEN_PASS);
getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM); getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM);
truncsp(str); truncsp(str);
if(chkpass(str,&useron,true)) if(chkpass(str,&useron,true))
......
...@@ -386,7 +386,7 @@ BOOL sbbs_t::newuser() ...@@ -386,7 +386,7 @@ BOOL sbbs_t::newuser()
if(cfg.sys_misc&SM_PWEDIT && text[NewPasswordQ][0] && yesno(text[NewPasswordQ])) if(cfg.sys_misc&SM_PWEDIT && text[NewPasswordQ][0] && yesno(text[NewPasswordQ]))
while(online) { while(online) {
bprintf(text[NewPasswordPromptFmt], cfg->min_pwlen, LEN_PASS); bprintf(text[NewPasswordPromptFmt], cfg.min_pwlen, LEN_PASS);
getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM); getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM);
truncsp(str); truncsp(str);
if(chkpass(str,&useron,true)) { if(chkpass(str,&useron,true)) {
......
...@@ -702,7 +702,7 @@ bool sbbs_t::chkpass(char *passwd, user_t* user, bool unique) ...@@ -702,7 +702,7 @@ bool sbbs_t::chkpass(char *passwd, user_t* user, bool unique)
SAFECOPY(pass,passwd); SAFECOPY(pass,passwd);
strupr(pass); strupr(pass);
if(strlen(pass) < cfg->min_pwlen) { if(strlen(pass) < cfg.min_pwlen) {
bputs(text[PasswordTooShort]); bputs(text[PasswordTooShort]);
return(false); return(false);
} }
......
...@@ -1112,7 +1112,7 @@ void sbbs_t::maindflts(user_t* user) ...@@ -1112,7 +1112,7 @@ void sbbs_t::maindflts(user_t* user)
pause(); pause();
break; break;
} }
bprintf(text[NewPasswordPromptFmt], cfg->min_pwlen, LEN_PASS); bprintf(text[NewPasswordPromptFmt], cfg.min_pwlen, LEN_PASS);
if(!getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM)) if(!getstr(str,LEN_PASS,K_UPPER|K_LINE|K_TRIM))
break; break;
truncsp(str); truncsp(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment