mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 14:46:53 +00:00
Preserve backupCredentialRequest across rereg
This commit is contained in:
1 parent
6fcb2ab5dd
commit
075a08884b
2 files changed
+22
No files matched your search
@@ -304,6 +304,11 @@ public class Accounts extends AbstractDynamoDbStore {
|
||||
|
||||
accountToCreate.setVersion(existingAccount.getVersion());
|
||||
|
||||
// Carry over the old backup id commitment. If the new account claimer cannot does not have the secret used to
|
||||
// generate their backup-id, this credential is useless, however if they can produce the same credential they
|
||||
// won't be rate-limited for setting their backup-id.
|
||||
accountToCreate.setBackupCredentialRequest(existingAccount.getBackupCredentialRequest());
|
||||
|
||||
final List<TransactWriteItem> writeItems = new ArrayList<>();
|
||||
|
||||
// If we're reclaiming an account that already has a username, we'd like to give the re-registering client
|
||||
|
||||
Reference in new issue
Block a user