Skip to content

Commit

Permalink
Clarify that the login command doesn't require the phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 4, 2023
1 parent c704191 commit 1ccd166
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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_]",
},
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=

0 comments on commit 1ccd166

Please sign in to comment.