diff options
Diffstat (limited to 'util/crypto')
| -rw-r--r-- | util/crypto/crypto.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/crypto/crypto.go b/util/crypto/crypto.go index 05d088a8..2db5bd83 100644 --- a/util/crypto/crypto.go +++ b/util/crypto/crypto.go @@ -13,6 +13,5 @@ func HashPasswordAsBcrypt(password string) (string, error) { // CheckPasswordHash verifies if the given password matches the bcrypt hash. func CheckPasswordHash(hash, password string) bool { - err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) - return err == nil + return bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) == nil } |
