Skip to content
Merged
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
2 changes: 1 addition & 1 deletion stbridge/stbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func Run(startup *SyncthingStartupConfig) error {
log.Printf("Setting API key to random string")
c.GUI.APIKey = rand.String(32)
}
if len(c.GUI.Password) == 0 {
if len(c.GUI.Password) == 0 || c.GUI.CompareHashedPassword("") == nil {
log.Printf("Setting password to API key")
c.GUI.SetPassword(c.GUI.APIKey)
}
Expand Down
Loading