Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ func (c *Config) authenticate(client *http.Client, cookies cookies, uri, user, p
// Find csrf
csrf := ""
for _, cookie := range cookies["auth"] {
if cookie.Name == "_csrf" {
if cookie.Name == "_csrf" && cookie.Value != "" {
csrf = cookie.Value
break;
}
}
query := url.Values{}
Expand Down
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (

"golang.org/x/crypto/ssh/terminal"

"github.com/bcmi-labs/arduino-connector/auth"
"github.com/arduino/arduino-connector/auth"
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/facchinm/service"
"github.com/kardianos/osext"
Expand Down