From 8789074ecdaeecdd721a5fa2a4e32840f6231d44 Mon Sep 17 00:00:00 2001 From: Ryan Mehri Date: Mon, 11 May 2020 23:02:02 -0600 Subject: fix issue with empty password being hashed --- backend/cache/cache.go | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/cache') diff --git a/backend/cache/cache.go b/backend/cache/cache.go index 56581b8..f999d86 100644 --- a/backend/cache/cache.go +++ b/backend/cache/cache.go @@ -42,6 +42,7 @@ func (c *Cache) Get(hash, userPassword string) (db.Paste, error) { } // if there is a password, check the provided one against it + println(p.Password) if p.Password != "" { // if passwords do not match, the user is unauthorized if !hashing.PasswordsEqual(p.Password, userPassword) { -- cgit v1.2.3