add missing md5 step to test module

This commit is contained in:
Gabriele Gristina
2020-12-11 14:33:45 +01:00
parent ba82dd235c
commit 731cb1c9bc
+3 -1
View File
@@ -26,7 +26,9 @@ sub module_generate_hash
$cost = $iter;
}
my $hash = bcrypt ($word, sprintf ('$2a$%s$%s$', $cost, en_base64 ($salt)));
my $md5_word = md5_hex ($word);
my $hash = bcrypt ($md5_word, sprintf ('$2a$%s$%s$', $cost, en_base64 ($salt)));
return $hash;
}