correct function call
This commit is contained in:
parent
050c96f05f
commit
412e27b414
|
|
@ -61,7 +61,7 @@ func (t *TwoFactor) VerifyScratchToken(token string) bool {
|
||||||
if len(token) == 0 {
|
if len(token) == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
tempHash := hashPassword(token, t.ScratchSalt)
|
tempHash := hashToken(token, t.ScratchSalt)
|
||||||
return subtle.ConstantTimeCompare([]byte(t.ScratchHash), []byte(tempHash)) == 1
|
return subtle.ConstantTimeCompare([]byte(t.ScratchHash), []byte(tempHash)) == 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user