mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-13 19:04:21 +01:00
Refactor register and verify
This commit is contained in:
@@ -19,10 +19,6 @@ public class SetPinCommand implements LocalCommand {
|
||||
|
||||
@Override
|
||||
public int handleCommand(final Namespace ns, final Manager m) {
|
||||
if (!m.isRegistered()) {
|
||||
System.err.println("User is not registered.");
|
||||
return 1;
|
||||
}
|
||||
try {
|
||||
String registrationLockPin = ns.getString("registrationLockPin");
|
||||
m.setRegistrationLockPin(Optional.of(registrationLockPin));
|
||||
|
||||
Reference in New Issue
Block a user