style(api): correct bad request message in user authentication handler

This commit is contained in:
Masahiko AMANO 2025-01-06 03:54:40 +03:00
parent 9a0b81fba3
commit adcc7d22c3

View File

@ -20,7 +20,7 @@ func userAuth(c *gin.Context) {
}
err := c.ShouldBind(&credentials)
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": "И че за шнягу ты мне кинул?"})
c.JSON(http.StatusBadRequest, gin.H{"error": "И чё за шнягу ты мне кинул?"})
return
}
user, err := db.UserAuth(context.Background(), credentials.Login, credentials.Password)