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

Re-add bad password checker removed in commit 8b4426c7

Not sure why it was removed, apparently by accident.
parent 850c873b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
// $Id: badpasswords.js,v 1.3 2019/01/11 09:38:12 rswindell Exp $
"use strict";
require("sbbsdefs.js", 'USER_DELETED');
var badpasswords=0;
var usr = new User;
var lastuser = system.lastuser;
for(var u=1; u <= lastuser; u++) {
usr.number = u;
if(usr == null)
continue;
if(usr.settings&(USER_DELETED|USER_INACTIVE))
continue;
if(!system.trashcan("password",usr.security.password))
continue;
printf("%-25s: %s\r\n", usr.alias, usr.security.password);
badpasswords++;
}
printf("%u bad passwords found\n", badpasswords);
\ No newline at end of file
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