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

Re-add bad password checker removed in commit 6f4392b5

Not sure why it was removed, apparently by accident.
parent 5772cf34
No related branches found
No related tags found
No related merge requests found
// $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