perlPackages.CatalystAuthenticationStoreHtpasswd: add patch to avoid DES encrypted passwords in tests
This commit is contained in:
parent
f8af7d5b1c
commit
33b7b0bf88
2 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
Replaces the legacy DES crypt hash used in tests with a stronger
|
||||
bcrypt function, as crypt() in pkgs.perl no longer supports DES
|
||||
|
||||
# htpasswd -nbB mufasa "Circle of Life"
|
||||
|
||||
diff --git a/t/lib/TestApp/htpasswd b/t/lib/TestApp/htpasswd
|
||||
index 6cec784..91e5375 100644
|
||||
--- a/t/lib/TestApp/htpasswd
|
||||
+++ b/t/lib/TestApp/htpasswd
|
||||
@@ -1 +1 @@
|
||||
-mufasa:Y7hn4ncIVPOuI
|
||||
+mufasa:$2y$05$.KPC4Gja9L5AxJATDQBzs.lCHkm49l/9dcoyPcJg0JhyIvsD6Gqza
|
|
@ -2256,6 +2256,9 @@ let
|
|||
};
|
||||
buildInputs = [ ModuleBuildTiny TestLongString TestSimple13 TestWWWMechanize TestWWWMechanizeCatalyst ];
|
||||
propagatedBuildInputs = [ AuthenHtpasswd CatalystPluginAuthentication ];
|
||||
patches = [
|
||||
../development/perl-modules/CatalystAuthenticationStoreHtpasswd-test-replace-DES-hash-with-bcrypt.patch
|
||||
];
|
||||
meta = {
|
||||
description = "Authen::Htpasswd based user storage/authentication";
|
||||
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
||||
|
|
Loading…
Reference in a new issue