remove println

This commit is contained in:
2025-03-26 09:42:44 +00:00
parent 06a7296285
commit c736b95c50

View File

@@ -20,6 +20,7 @@ func SetDB(database *sql.DB) {
func CreateUser(username, passwordHash string) error { func CreateUser(username, passwordHash string) error {
_, err := db.Exec("INSERT INTO users (username, password_hash) VALUES (?, ?)", username, passwordHash) _, err := db.Exec("INSERT INTO users (username, password_hash) VALUES (?, ?)", username, passwordHash)
return err return err
} }
@@ -34,6 +35,7 @@ func GetUserByUsername(username string) *User {
} }
return nil return nil
} }
return &user return &user
} }
@@ -48,7 +50,7 @@ func GetUserByID(id int) *User {
} }
return nil return nil
} }
log.Printf("📦 Looking up user ID %d", id)
return &user return &user
} }
@@ -62,7 +64,9 @@ func LogLoginAttempt(username string, success bool) {
func boolToInt(b bool) int { func boolToInt(b bool) int {
if b { if b {
return 1 return 1
} }
return 0 return 0
} }