Add usernames to whoami and account creation responses

This commit is contained in:
Jon Chambers
2021-12-07 16:11:51 -05:00
committed by Jon Chambers
parent 31373fd1ba
commit eaa4c318e3
2 changed files with 14 additions and 0 deletions

View File

@@ -391,6 +391,7 @@ public class AccountController {
return new AccountCreationResult(account.getUuid(),
account.getNumber(),
account.getPhoneNumberIdentifier(),
account.getUsername().orElse(null),
existingAccount.map(Account::isStorageSupported).orElse(false));
}
@@ -605,6 +606,7 @@ public class AccountController {
return new AccountCreationResult(auth.getAccount().getUuid(),
auth.getAccount().getNumber(),
auth.getAccount().getPhoneNumberIdentifier(),
auth.getAccount().getUsername().orElse(null),
auth.getAccount().isStorageSupported());
}