mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:26:53 +00:00
Add explicit check for recovery password in AccountsManger#create
This commit is contained in:
1 parent
e36e740bc0
commit
fcf12face8
2 files changed
+15
No files matched your search
+11
@@ -1658,6 +1658,17 @@ class AccountsManagerTest {
|
||||
verify(phoneNumberIdentifiers).getPhoneNumberIdentifier(targetNumber);
|
||||
}
|
||||
|
||||
@Test
|
||||
void createAccountWithoutNumberOrRecoveryPassword() {
|
||||
assertThrows(IllegalArgumentException.class,
|
||||
() -> accountsManager.create(new AccountAttributes(),
|
||||
Collections.emptyList(),
|
||||
new IdentityKey(ECKeyPair.generate().getPublicKey()),
|
||||
ReceiptCredentialTestUtil.receiptPresentation(),
|
||||
mock(DeviceSpec.class),
|
||||
null));
|
||||
}
|
||||
|
||||
static Collection<Arguments> updateCurrentProfileVersion() {
|
||||
|
||||
final byte[] empty = new byte[0];
|
||||
|
||||
Reference in new issue
Block a user