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

Use system.check_password() to report on low-quality passwords

parent 85dea261
Branches
Tags
No related merge requests found
Pipeline #8863 passed
......@@ -154,6 +154,10 @@ var tests = {
, usr.number
, password.length
, system.max_password_length));
else if(!system.check_password(password))
output.push(format("User #%-4u has a low quality password%s"
, usr.number
, options.verbose ? (': ' + password) : ''));
if(!system.trashcan("password", password))
continue;
output.push(format("User #%-4u has a disallowed password%s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment