fix missing gin context (fixes #1)

This commit is contained in:
Adrian Zürcher
2025-10-26 21:05:55 +01:00
parent 8d8a1e3c33
commit 4670c93eff
6 changed files with 368 additions and 357 deletions

View File

@@ -2,7 +2,6 @@ package handlers
import (
"fmt"
"log"
"net/http"
"time"
@@ -62,7 +61,6 @@ func (aH *AccessHandler) Login(c *gin.Context) {
}
if len(dbRecord) > 1 {
log.Println("multiple users found")
aH.logger.Error("Login", "more than one record found")
c.JSON(http.StatusInternalServerError, models.NewJsonMessageResponse("internal error"))
return