mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 19:10:38 +00:00
Return a Manager from ProvisioningManager and RegistrationManager when finished
This commit is contained in:
parent
a7b414a870
commit
2935b96070
4 changed files with 49 additions and 23 deletions
|
@ -28,7 +28,8 @@ public class VerifyCommand implements RegistrationCommand {
|
|||
var pin = ns.getString("pin");
|
||||
|
||||
try {
|
||||
m.verifyAccount(verificationCode, pin);
|
||||
final var manager = m.verifyAccount(verificationCode, pin);
|
||||
manager.close();
|
||||
} catch (LockedException e) {
|
||||
throw new UserErrorException(
|
||||
"Verification failed! This number is locked with a pin. Hours remaining until reset: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue