Skip to content
Snippets Groups Projects
Unverified Commit aaba95f9 authored by Jonathan Klabunde Tomer's avatar Jonathan Klabunde Tomer Committed by GitHub
Browse files

return `null` for empty username hash in AccountIdentityResponse

parent 8d1135a2
No related merge requests found
...@@ -255,7 +255,7 @@ public class AccountController { ...@@ -255,7 +255,7 @@ public class AccountController {
return new AccountIdentityResponse(auth.getAccount().getUuid(), return new AccountIdentityResponse(auth.getAccount().getUuid(),
auth.getAccount().getNumber(), auth.getAccount().getNumber(),
auth.getAccount().getPhoneNumberIdentifier(), auth.getAccount().getPhoneNumberIdentifier(),
auth.getAccount().getUsernameHash().orElse(null), auth.getAccount().getUsernameHash().filter(h -> h.length > 0).orElse(null),
auth.getAccount().isStorageSupported()); auth.getAccount().isStorageSupported());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment