Skip to content

Commit

Permalink
Merge pull request #3 from dminko/patch-1
Browse files Browse the repository at this point in the history
add captcha param
  • Loading branch information
jigar-dhulla authored Dec 17, 2021
2 parents e7edab9 + 1932f89 commit 1ca0ba6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Signal.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(string $binaryPath, string $username, string $format
* Register a phone number with SMS or voice verification. Use the verify command to complete the verification.
* Default verify with SMS
* @param bool $voiceVerification The verification should be done over voice, not SMS.
* @param string $captcha - from https://signalcaptchas.org/registration/generate.html
* @return bool
*/
public function register(bool $voiceVerification = false): bool
Expand All @@ -47,6 +48,10 @@ public function register(bool $voiceVerification = false): bool
}


if(!empty($captcha)){
$this->command->addArg('--captcha', $captcha);
}

return $this->command->execute();
}

Expand Down

0 comments on commit 1ca0ba6

Please sign in to comment.