Skip to content

Commit

Permalink
config: prefer webflow_user over dav_user
Browse files Browse the repository at this point in the history
  • Loading branch information
gnojus committed Mar 18, 2024
1 parent 67fa071 commit 2e3f319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func loadAccounts() ([]account, [][]folder, error) {
for id, folderIDs := range findFolderIDs(acc.KeyStrings()) {
account := account{
url: acc.Key(id + `\url`).String(),
user: acc.Key(id + `\dav_user`).String(),
user: acc.Key(id + `\webflow_user`).String(),
}
if account.user == "" {
account.user = acc.Key(id + `\webflow_user`).String()
account.user = acc.Key(id + `\dav_user`).String()
}
debugf("account %q for %q", account.user, account.url)
if account.url == "" || account.user == "" {
Expand Down

0 comments on commit 2e3f319

Please sign in to comment.