From 81c141d41aef41d2dbdd50b1874f4964b83d6767 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" Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- 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.39.5