Fix inverted argument order for account recovery passwords

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2026-08-07 14:36:22 -04:00
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();
}