aboutsummaryrefslogtreecommitdiff
path: root/backend/cache/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/cache/cache.go')
-rw-r--r--backend/cache/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/cache/cache.go b/backend/cache/cache.go
index 918873e..56581b8 100644
--- a/backend/cache/cache.go
+++ b/backend/cache/cache.go
@@ -44,7 +44,7 @@ func (c *Cache) Get(hash, userPassword string) (db.Paste, error) {
// if there is a password, check the provided one against it
if p.Password != "" {
// if passwords do not match, the user is unauthorized
- if !hashing.ComparePasswords(p.Password, userPassword) {
+ if !hashing.PasswordsEqual(p.Password, userPassword) {
return db.Paste{}, UserUnauthorized
}
}