1
0
Fork 0
mirror of synced 2024-06-13 16:24:47 +12:00

password dictionary

This commit is contained in:
Damodar Lohani 2022-12-23 07:19:11 +00:00
parent eb9e7c737e
commit 5d61ff5fab
2 changed files with 10008 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -605,6 +605,9 @@ $register->set('smtp', function () {
$register->set('geodb', function () {
return new Reader(__DIR__ . '/assets/dbip/dbip-country-lite-2022-06.mmdb');
});
$register->set('passwordsdb', function () {
return \file_get_contents(__DIR__ . '/assets/security/10k-common-passwords');
});
$register->set('db', function () {
// This is usually for our workers or CLI commands scope
$dbHost = App::getEnv('_APP_DB_HOST', '');
@ -1022,6 +1025,11 @@ App::setResource('geodb', function ($register) {
return $register->get('geodb');
}, ['register']);
App::setResource('passwordsdb', function ($register) {
/** @var Utopia\Registry\Registry $register */
return $register->get('passwordsdb');
}, ['register']);
App::setResource('sms', function () {
$dsn = new DSN(App::getEnv('_APP_SMS_PROVIDER'));
$user = $dsn->getUser();