Merge pull request #223138 from stigtsp/fix/Plack-test-replace-DES-with-bcrypt
perlPackages.Plack: add patch to avoid DES encrypted passwords in tests
This commit is contained in:
commit
c94802a08d
|
@ -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 admin s3cr3t
|
||||
|
||||
diff --git a/t/Plack-Middleware/htpasswd b/t/Plack-Middleware/htpasswd
|
||||
index b597da8..f80461d 100644
|
||||
--- a/t/Plack-Middleware/htpasswd
|
||||
+++ b/t/Plack-Middleware/htpasswd
|
||||
@@ -1,1 +1,1 @@
|
||||
-admin:6iSeSVcVHgNQw
|
||||
+admin:$2y$05$qO4lTUQMcE5mU6KI0t7j9uCjcTkpf6sAp0cv6oZiemD0MI8keeKPa
|
|
@ -19593,6 +19593,9 @@ let
|
|||
};
|
||||
buildInputs = [ AuthenSimplePasswd CGIEmulatePSGI FileShareDirInstall HTTPRequestAsCGI HTTPServerSimplePSGI IOHandleUtil LWP LWPProtocolhttp10 LogDispatchArray MIMETypes TestMockTimeHiRes TestRequires TestSharedFork TestTCP ];
|
||||
propagatedBuildInputs = [ ApacheLogFormatCompiler CookieBaker DevelStackTraceAsHTML FileShareDir FilesysNotifySimple HTTPEntityParser HTTPHeadersFast HTTPMessage TryTiny ];
|
||||
patches = [
|
||||
../development/perl-modules/Plack-test-replace-DES-hash-with-bcrypt.patch
|
||||
];
|
||||
meta = {
|
||||
description = "Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)";
|
||||
homepage = "https://github.com/plack/Plack";
|
||||
|
|
Loading…
Reference in a new issue