diff --git a/src/httpServer/handlers.go b/src/httpServer/handlers.go index 1779803..2b9437b 100755 --- a/src/httpServer/handlers.go +++ b/src/httpServer/handlers.go @@ -238,7 +238,7 @@ func (s *Server) GetTimeoutsHandler() appHandler { return &appError{ "The \"username\" field is required ", http.StatusBadRequest, nil} } pass := r.FormValue("password") - if user == "" { + if pass == "" { return &appError{ "The \"password\" field is required ", http.StatusBadRequest, nil} } res, err := plugin.Load(bytes.NewReader(buf.Bytes()), user, pass); @@ -820,4 +820,4 @@ func (s *Server) GetSourceHandler() appHandler { } } return nodeArray - } \ No newline at end of file + }