style(api): correct bad request message in user authentication handler
This commit is contained in:
parent
9a0b81fba3
commit
adcc7d22c3
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user