diff options
| -rw-r--r-- | utilities.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utilities.go b/utilities.go index ad0adaf..75f153f 100644 --- a/utilities.go +++ b/utilities.go @@ -86,10 +86,11 @@ func HashPassword(password string) (string, error) { } // Verify password and hash -func VerifyPassword(password, hash string) (bool, error) { +func VerifyPassword(password, hash string) bool { err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) if err != nil { - return false, err + revel.ERROR.Printf("%s \n", err) + return false } - return true, nil + return true } |
