Skip to content

Commit

Permalink
address more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JiahuiWho committed Sep 18, 2023
1 parent b56df33 commit 343c9c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ String getClientName(String account) throws BadRequestException {
if (sep10Config.isClientAttributionRequired() && client == null) {
throw new BadRequestException("Client not found");
}
if (!sep10Config.getAllowedClientDomains().isEmpty()
&& client != null
&& !sep10Config.getAllowedClientDomains().contains(client.getDomain())) {
client = null;
}
return client == null ? null : client.getName();
}

Expand Down

0 comments on commit 343c9c1

Please sign in to comment.