Fixes silly var name mistake.
This commit is contained in:
parent
4f059984ad
commit
ad02b4e710
1 changed files with 2 additions and 2 deletions
|
|
@ -228,8 +228,8 @@ proc makePassword(password, salt: string, comparingTo = ""): string =
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
result = getMD5(salt & getMD5(password))
|
result = getMD5(salt & getMD5(password))
|
||||||
else:
|
else:
|
||||||
let salt = if comparingTo != "": comparingTo else: genSalt(8)
|
let bcryptSalt = if comparingTo != "": comparingTo else: genSalt(8)
|
||||||
result = hash(getMD5(salt & getMD5(password)), comparingTo)
|
result = hash(getMD5(salt & getMD5(password)), bcryptSalt)
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
template `||`(x: expr): expr = (if not isNil(x): x else: "")
|
template `||`(x: expr): expr = (if not isNil(x): x else: "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue