浏览代码

Clarify that the login command doesn't require the phone number

Tulir Asokan 1 年之前
父节点
当前提交
1ccd16626a
共有 3 个文件被更改,包括 8 次插入6 次删除
  1. 5 3
      commands.go
  2. 1 1
      go.mod
  3. 2 2
      go.sum

+ 5 - 3
commands.go

@@ -430,9 +430,11 @@ var cmdLogin = &commands.FullHandler{
 	Func: wrapCommand(fnLogin),
 	Name: "login",
 	Help: commands.HelpMeta{
-		Section:     commands.HelpSectionAuth,
-		Description: "Link the bridge to your WhatsApp account as a web client.",
-		Args:        "[_phone number_]",
+		Section: commands.HelpSectionAuth,
+		Description: "Link the bridge to your WhatsApp account as a web client. " +
+			"The phone number parameter is optional: if provided, the bridge will create a 8-character login code " +
+			"that can be used instead of the QR code.",
+		Args: "[_phone number_]",
 	},
 }
 

+ 1 - 1
go.mod

@@ -19,7 +19,7 @@ require (
 	golang.org/x/net v0.14.0
 	google.golang.org/protobuf v1.31.0
 	maunium.net/go/maulogger/v2 v2.4.1
-	maunium.net/go/mautrix v0.16.1-0.20230821105106-ac5c2c22102c
+	maunium.net/go/mautrix v0.16.1-0.20230904092006-3fffe3f31ce1
 )
 
 require (

+ 2 - 2
go.sum

@@ -133,5 +133,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
 maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
 maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8=
 maunium.net/go/maulogger/v2 v2.4.1/go.mod h1:omPuYwYBILeVQobz8uO3XC8DIRuEb5rXYlQSuqrbCho=
-maunium.net/go/mautrix v0.16.1-0.20230821105106-ac5c2c22102c h1:oRIaFbS4ds9biwJVguT+9Zu7n5zDbKQeuGklXHQxvCU=
-maunium.net/go/mautrix v0.16.1-0.20230821105106-ac5c2c22102c/go.mod h1:XAjE9pTSGcr6vXaiNgQGiip7tddJ8FQV1a29u2QdBG4=
+maunium.net/go/mautrix v0.16.1-0.20230904092006-3fffe3f31ce1 h1:o4SOY1Aim54E7DDCPh+Iyq+gBjnvOwKKBvziXftki9o=
+maunium.net/go/mautrix v0.16.1-0.20230904092006-3fffe3f31ce1/go.mod h1:XAjE9pTSGcr6vXaiNgQGiip7tddJ8FQV1a29u2QdBG4=