From 62dff18b4d1785b1ff8544b0e554af0f8ce6ab92 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 11 May 2018 11:36:29 +0100 Subject: [PATCH] Comment verify_password --- modules/page-login.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/page-login.php b/modules/page-login.php index f4aa88d..ea8032e 100644 --- a/modules/page-login.php +++ b/modules/page-login.php @@ -217,7 +217,12 @@ function hash_password($pass) { $props["options"] ); } - +/** + * Verifies a user's password against a pre-generated hash. + * @param string $pass The user's password. + * @param string $hash The hash to compare against. + * @return bool Whether the password matches the has or not. + */ function verify_password($pass, $hash) { $pass_transformed = base64_encode(hash("sha384", $pass)); return password_verify($pass_transformed, $hash);