From 0ebc9e1d0be21b4a01b89e5323e52e3dc980f306 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 7 Dec 2014 18:35:37 +0000 Subject: [PATCH] Add salt param to hash(). --- forum.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum.nim b/forum.nim index 76613dd..5f5ccdc 100644 --- a/forum.nim +++ b/forum.nim @@ -228,7 +228,7 @@ proc makePassword(password, salt: string): string = when defined(windows): result = getMD5(salt & getMD5(password)) else: - result = hash(getMD5(salt & getMD5(password))) + result = hash(getMD5(salt & getMD5(password)), genSalt(8)) # ----------------------------------------------------------------------------- template `||`(x: expr): expr = (if not isNil(x): x else: "")