From 39a1d3d6e044f80136f09f7d21f6871e2cf1fa57 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 7 Oct 2023 10:21:55 -0400 Subject: [PATCH] more --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index 8f6dea3..91cb744 100644 --- a/auth.go +++ b/auth.go @@ -21,7 +21,7 @@ func Login(username, password string) bool { return false } log.Printf("Checking against recovery code %s", rc) - if bcrypt.CompareHashAndPassword([]byte(u.Password), []byte(rc)) != nil { + if bcrypt.CompareHashAndPassword([]byte(rc), []byte(password)) != nil { log.Printf("scsusers.Login: Failed password for " + username) return false }