...
 
Commits (1)
......@@ -248,7 +248,7 @@ bool sbbs_t::logon()
if(cfg.sys_misc&SM_PWEDIT && yesno(text[NewPasswordQ]))
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);
truncsp(str);
if(chkpass(str,&useron,true))
......
......@@ -386,7 +386,7 @@ BOOL sbbs_t::newuser()
if(cfg.sys_misc&SM_PWEDIT && text[NewPasswordQ][0] && yesno(text[NewPasswordQ]))
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);
truncsp(str);
if(chkpass(str,&useron,true)) {
......
......@@ -702,7 +702,7 @@ bool sbbs_t::chkpass(char *passwd, user_t* user, bool unique)
SAFECOPY(pass,passwd);
strupr(pass);
if(strlen(pass) < cfg->min_pwlen) {
if(strlen(pass) < cfg.min_pwlen) {
bputs(text[PasswordTooShort]);
return(false);
}
......
......@@ -1112,7 +1112,7 @@ void sbbs_t::maindflts(user_t* user)
pause();
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))
break;
truncsp(str);
......