mirror of
https://github.com/google/nomulus
synced 2026-02-05 20:41:08 +00:00
Tweak the registrar-ote-setup web console
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227736173
This commit is contained in:
@@ -98,6 +98,7 @@ public final class ConsoleOteSetupAction implements Runnable {
|
||||
@Inject @Config("base64StringGenerator") StringGenerator passwordGenerator;
|
||||
@Inject @Parameter("clientId") Optional<String> clientId;
|
||||
@Inject @Parameter("email") Optional<String> email;
|
||||
@Inject @Parameter("password") Optional<String> optionalPassword;
|
||||
|
||||
@Inject ConsoleOteSetupAction() {}
|
||||
|
||||
@@ -170,7 +171,7 @@ public final class ConsoleOteSetupAction implements Runnable {
|
||||
data.put("contactEmail", email.get());
|
||||
|
||||
try {
|
||||
String password = passwordGenerator.createString(PASSWORD_LENGTH);
|
||||
String password = optionalPassword.orElse(passwordGenerator.createString(PASSWORD_LENGTH));
|
||||
ImmutableMap<String, String> clientIdToTld =
|
||||
OteAccountBuilder.forClientId(clientId.get())
|
||||
.addContact(email.get())
|
||||
|
||||
Reference in New Issue
Block a user