return `null` for empty username hash in AccountIdentityResponse
This commit is contained in:
parent
8d1135a2a3
commit
aaba95f9b8
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue