diff options
Diffstat (limited to 'internal/api/client')
-rw-r--r-- | internal/api/client/account/accountupdate.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/account/accountupdate.go b/internal/api/client/account/accountupdate.go index 406769fe7..23a350503 100644 --- a/internal/api/client/account/accountupdate.go +++ b/internal/api/client/account/accountupdate.go @@ -44,9 +44,9 @@ func (m *Module) AccountUpdateCredentialsPATCHHandler(c *gin.Context) { } l.Tracef("retrieved account %+v", authed.Account.ID) - l.Trace("parsing request form") + l.Debugf("parsing request form %s", c.Request.Form) form := &model.UpdateCredentialsRequest{} - if err := c.ShouldBind(form); err != nil || form == nil { + if err := c.ShouldBind(&form); err != nil || form == nil { l.Debugf("could not parse form from request: %s", err) c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return |