fix missing gin context (fixes #1)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user