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: "")