Content-Length: 275680 | pFad | http://github.com/unicodeveloper/laravel-password/commit/abc0db31f7fde116356e0649dcfbb67d60e81c4c

FC Merge pull request #12 from sparkdevio/remove-flip · unicodeveloper/laravel-password@abc0db3 · GitHub
Skip to content

Commit abc0db3

Browse files
author
Prosper Otemuyiwa
authored
Merge pull request #12 from sparkdevio/remove-flip
Remove the flip altogether
2 parents d1e77f8 + 48bfc55 commit abc0db3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/DumbPasswordServiceProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ class DumbPasswordServiceProvider extends ServiceProvider
2929
public function boot()
3030
{
3131
$path = realpath(__DIR__.'/../resources/config/passwordlist.txt');
32-
$dumbPasswords = collect(explode("\n", file_get_contents($path)));
33-
$data = $dumbPasswords->flip();
32+
$data = collect(explode("\n", file_get_contents($path)));
3433

3534
Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) use ($data) {
36-
return !$data->has($value);
35+
return !$data->contains($value);
3736
}, $this->message);
3837
}
3938

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/unicodeveloper/laravel-password/commit/abc0db31f7fde116356e0649dcfbb67d60e81c4c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy