* @since 1.27
* @var string path to file
*/
-$wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb';
+$wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb';
/*
* Max time (in seconds) a user-generated transaction can spend in writes.
<?php
/**
- * Create serialized/commonpasswords.cdb
+ * Generate includes/password/commonpasswords.cdb
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* For example:
* https://github.com/danielmiessler/SecLists/blob/fe2b40dd84/Passwords/rockyou.txt?raw=true
*
- * @see serialized/commonpasswords.cdb and PasswordPolicyChecks::checkPopularPasswordBlacklist
+ * @see PasswordPolicyChecks::checkPopularPasswordBlacklist
* @since 1.27
* @ingroup Maintenance
*/
$this->addArg( 'inputfile', 'List of passwords (one per line) to use or - for stdin', true );
$this->addArg(
'output',
- "Location to write CDB file to (Try $IP/serialized/commonpasswords.cdb)",
+ "Location to write CDB file to (Try $IP/includes/password/commonpasswords.cdb)",
true
);
}
global $IP;
$this->setMwGlobals( [
'wgSitename' => 'sitename',
- 'wgPopularPasswordFile' => "$IP/serialized/commonpasswords.cdb"
+ 'wgPopularPasswordFile' => "$IP/includes/password/commonpasswords.cdb"
] );
$user = User::newFromName( 'username' );
$status = PasswordPolicyChecks::checkPopularPasswordBlacklist( PHP_INT_MAX, $user, $password );