Add valid TLD check to LrpToken validation

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131438274
This commit is contained in:
ctingue 2016-08-26 13:57:39 -07:00 committed by Ben McIlwain
parent 1b3f77a468
commit 942dc58251
3 changed files with 32 additions and 4 deletions

View file

@ -192,7 +192,7 @@ public abstract class BaseDomainCreateFlow<R extends DomainBase, B extends Build
&& !command.getAuthInfo().getPw().getValue().isEmpty()
&& !isAnchorTenantViaReservation;
lrpToken = isLrpApplication
? TldSpecificLogicProxy.getMatchingLrpToken(command)
? TldSpecificLogicProxy.getMatchingLrpToken(command, tld)
: Optional.<LrpToken>absent();
// Superusers can create reserved domains, force creations on domains that require a claims
// notice without specifying a claims key, and override blocks on registering premium domains.