From 74f0de344929d253f4cee1d0e81239e7d2d21f1c Mon Sep 17 00:00:00 2001 From: David Roberts Date: Mon, 13 Apr 2020 01:22:07 +0000 Subject: [PATCH] Bug 20370: Misleading comment for bcrypt - #encrypt it; Instead it should be #hash it This patch changes the wording of the comment To test: 1) Check the wording of Line 67 of Koha/AuthUtils.pm 2) Apply the patch 3) Check that the wording has changed from "Encrypt it" to "Hash it" --- Koha/AuthUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/AuthUtils.pm b/Koha/AuthUtils.pm index d834536357..7c4dcd1002 100644 --- a/Koha/AuthUtils.pm +++ b/Koha/AuthUtils.pm @@ -64,7 +64,7 @@ sub hash_password { # Set the cost to 8 and append a NULL $settings = '$2a$08$'.en_base64(generate_salt('weak', 16)); } - # Encrypt it + # Hash it return bcrypt($password, $settings); } -- 2.11.0