Strip url scheme from captcha string

This commit is contained in:
AsamK 2021-06-12 16:22:41 +02:00
parent 87406e2cdb
commit ec3d2346ef

View file

@ -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);