diff --git a/crm/rest/attachment_custom.go b/crm/rest/attachment_custom.go index d7875fe43..fd86bd44e 100644 --- a/crm/rest/attachment_custom.go +++ b/crm/rest/attachment_custom.go @@ -6,8 +6,6 @@ import ( "net/url" "time" - "github.com/davecgh/go-spew/spew" - "github.com/crusttech/crust/crm/rest/handlers" "github.com/crusttech/crust/crm/service" "github.com/crusttech/crust/crm/types" @@ -60,7 +58,6 @@ func loadAttachedFile(svc service.AttachmentService, ID uint64, preview, downloa } else { rval.Attachment = att if preview { - spew.Dump(att) rval.content, err = svc.OpenPreview(att) } else { rval.content, err = svc.OpenOriginal(att) diff --git a/system/rest/social.go b/system/rest/social.go index acbcc5387..ad897e3c5 100644 --- a/system/rest/social.go +++ b/system/rest/social.go @@ -9,7 +9,6 @@ import ( "strings" "time" - "github.com/davecgh/go-spew/spew" "github.com/go-chi/chi" "github.com/gorilla/sessions" "github.com/markbates/goth" @@ -90,7 +89,6 @@ func (ctrl *Social) MountRoutes(r chi.Router) { // Always set redir cookie, even if not requested. If param is empty, cookie is removed ctrl.setCookie(w, r, "redir", r.URL.Query().Get("redir")) - spew.Dump("REDIR=" + r.URL.Query().Get("redir")) // try to get the user without re-authenticating if user, err := gothic.CompleteUserAuth(w, r); err != nil { @@ -149,7 +147,6 @@ func (ctrl *Social) handleSuccessfulAuth(w http.ResponseWriter, r *http.Request, ctrl.jwtEncoder.SetCookie(w, r, u) if c, err := r.Cookie("redir"); c != nil && err == nil { - spew.Dump("REDIR=" + c.Value) ctrl.setCookie(w, r, "redir", "") w.Header().Set("Location", c.Value) w.WriteHeader(http.StatusSeeOther)