瀏覽代碼

Merge branch 'main' of github.com:binwiederhier/ntfy

binwiederhier 3 年之前
父節點
當前提交
72d4f67524
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .github/ISSUE_TEMPLATE/1_bug_report.md
  2. 1 1
      cmd/publish.go

+ 1 - 1
.github/ISSUE_TEMPLATE/1_bug_report.md

@@ -2,7 +2,7 @@
 name: 🐛 Bug Report
 about: Report any errors and problems
 title: ''
-labels: 'bug'
+labels: '🪲 bug'
 assignees: ''
 
 ---

+ 1 - 1
cmd/publish.go

@@ -171,7 +171,7 @@ func execPublish(c *cli.Context) error {
 			fmt.Fprintf(c.App.ErrWriter, "\r%s\r", strings.Repeat(" ", 20))
 		}
 		options = append(options, client.WithBasicAuth(user, pass))
-	} else if conf.DefaultUser != "" && conf.DefaultPassword != nil {
+	} else if token == "" && conf.DefaultUser != "" && conf.DefaultPassword != nil {
 		options = append(options, client.WithBasicAuth(conf.DefaultUser, *conf.DefaultPassword))
 	}
 	if pid > 0 {