We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a294ad + c377449 commit 5c46797Copy full SHA for 5c46797
src/DumbPasswordServiceProvider.php
@@ -40,9 +40,12 @@ public function boot()
40
$path = realpath(__DIR__ . '/../resources/config/passwordlist.txt');
41
$cache_key = md5_file($path);
42
$data = Cache::rememberForever('dumbpwd_list_' . $cache_key, function () use ($path) {
43
- return collect(explode("\n", file_get_contents($path)));
+ return collect(explode("\n", file_get_contents($path)))
44
+ ->map(function ($password) {
45
+ return strtolower($password);
46
+ });
47
});
- return !$data->contains($value);
48
+ return !$data->contains(strtolower($value));
49
}, $this->message);
50
}
51
0 commit comments