mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:16:50 +00:00
Fix inverted argument order for account recovery passwords
This commit is contained in:
1 parent
2dd46b3b85
commit
4e329ae48f
1 file changed
+2
-2
@@ -689,8 +689,8 @@ public class Account {
|
||||
public Optional<SaltedTokenHash> getAccountRecoveryPassword() {
|
||||
requireNotStale();
|
||||
|
||||
return accountRecoveryPasswordSalt != null && accountRecoveryPasswordHash != null
|
||||
? Optional.of(new SaltedTokenHash(accountRecoveryPasswordSalt, accountRecoveryPasswordHash))
|
||||
return accountRecoveryPasswordHash != null && accountRecoveryPasswordSalt != null
|
||||
? Optional.of(new SaltedTokenHash(accountRecoveryPasswordHash, accountRecoveryPasswordSalt))
|
||||
: Optional.empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user