Skip to content

Commit

Permalink
Update captcha help text
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Oct 22, 2023
1 parent 7887a5a commit 101c217
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions man/signal-cli.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Voice verification only works if an SMS verification has been attempted before.
The captcha token, required if registration failed with a captcha required error.
To get the token, go to https://signalcaptchas.org/registration/generate.html
For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html
Check the developer tools for a redirect starting with signalcaptcha:// Everything after signalcaptcha:// is the captcha token.
After solving the captcha, right-click on the "Open Signal" link and copy the link.

=== verify

Expand Down Expand Up @@ -163,7 +163,7 @@ Voice verification only works if an SMS verification has been attempted before.
The captcha token, required if registration failed with a captcha required error.
To get the token, go to https://signalcaptchas.org/registration/generate.html
For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html
Check the developer tools for a redirect starting with signalcaptcha:// Everything after signalcaptcha:// is the captcha token.
After solving the captcha, right-click on the "Open Signal" link and copy the link.

=== finishChangeNumber

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/asamk/signal/util/CommandUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public static String getCaptchaRequiredMessage(final CaptchaRequiredException e,
message = """
Captcha required for verification, use --captcha CAPTCHA
To get the token, go to https://signalcaptchas.org/registration/generate.html
Check the developer tools (F12) console for a failed redirect to signalcaptcha://
Everything after signalcaptcha:// is the captcha token.""";
After solving the captcha, right-click on the "Open Signal" link and copy the link.""";
} else {
message = "Invalid captcha given.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ public static String getErrorMessageFromSendMessageResult(SendMessageResult resu
failure.getOptions().contains(ProofRequiredException.Option.RECAPTCHA)
? """
To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html
Check the developer tools (F12) console for a failed redirect to signalcaptcha://
Everything after signalcaptcha:// is the captcha token.
After solving the captcha, right-click on the "Open Signal" link and copy the link.
Use the following command to submit the captcha token:
signal-cli submitRateLimitChallenge --challenge CHALLENGE_TOKEN --captcha CAPTCHA_TOKEN"""
: ""
Expand Down

0 comments on commit 101c217

Please sign in to comment.