correct function call

This commit is contained in:
techknowlogick 2018-06-27 23:11:35 -04:00 committed by GitHub
parent 050c96f05f
commit 412e27b414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ func (t *TwoFactor) VerifyScratchToken(token string) bool {
if len(token) == 0 {
return false
}
tempHash := hashPassword(token, t.ScratchSalt)
tempHash := hashToken(token, t.ScratchSalt)
return subtle.ConstantTimeCompare([]byte(t.ScratchHash), []byte(tempHash)) == 1
}