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