mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 23:55:02 +01:00
Bad request on auth controller bad req body
This commit is contained in:
@@ -35,7 +35,8 @@ func (controller *AuthController) Auth(c echo.Context) error {
|
||||
var body AuthRequestBody
|
||||
|
||||
if err := c.Bind(&body); err != nil {
|
||||
return err
|
||||
c.Logger().Errorf("Failed to load auth user request body: %v", err)
|
||||
return c.JSON(http.StatusBadRequest, responses.BadArgumentsError)
|
||||
}
|
||||
if err := c.Validate(&body); err != nil {
|
||||
return c.JSON(http.StatusBadRequest, responses.BadArgumentsError)
|
||||
|
||||
Reference in New Issue
Block a user