Closed GaraiViktor closed 3 years ago
rules are won't work on windows, PHP_EOL on Windows is not "\n" but "\r\n".
The passwords property has incorrect value, only has one item with the full content of txt, instead of one item per row.
passwords
I have 2 suggestion:
preg_split('/\n|\r\n?/', file_get_contents(self::PASSWORDS_FILE))
\n
explode('\n', file_get_contents(self::PASSWORDS_FILE))
This should now be fixed: https://github.com/langleyfoxall/laravel-nist-password-rules/releases/tag/v5.0.1
rules are won't work on windows, PHP_EOL on Windows is not "\n" but "\r\n".
The
passwords
property has incorrect value, only has one item with the full content of txt, instead of one item per row.I have 2 suggestion:
preg_split('/\n|\r\n?/', file_get_contents(self::PASSWORDS_FILE))
\n
line end character.explode('\n', file_get_contents(self::PASSWORDS_FILE))