mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-20 07:34:20 +01:00
Strip url scheme from captcha string
This commit is contained in:
@@ -27,7 +27,7 @@ public class RegisterCommand implements RegistrationCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void handleCommand(final Namespace ns, final RegistrationManager m) throws CommandException {
|
public void handleCommand(final Namespace ns, final RegistrationManager m) throws CommandException {
|
||||||
final boolean voiceVerification = ns.getBoolean("voice");
|
final boolean voiceVerification = ns.getBoolean("voice");
|
||||||
final var captcha = ns.getString("captcha");
|
final var captcha = ns.getString("captcha").replace("signalcaptcha://", "");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
m.register(voiceVerification, captcha);
|
m.register(voiceVerification, captcha);
|
||||||
|
|||||||
Reference in New Issue
Block a user