diff --git a/core/src/main/java/google/registry/model/registrar/RegistrarPoc.java b/core/src/main/java/google/registry/model/registrar/RegistrarPoc.java
index 9a3a56569..bc011d2c5 100644
--- a/core/src/main/java/google/registry/model/registrar/RegistrarPoc.java
+++ b/core/src/main/java/google/registry/model/registrar/RegistrarPoc.java
@@ -25,8 +25,6 @@ import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
-import javax.persistence.Index;
-import javax.persistence.Table;
/**
* A contact for a Registrar. Note, equality, hashCode and comparable have been overridden to only
@@ -37,7 +35,6 @@ import javax.persistence.Table;
* set to true.
*/
@Entity
-@Table(indexes = @Index(columnList = "loginEmailAddress", name = "registrarpoc_login_email_idx"))
@IdClass(RegistrarPocId.class)
@Access(AccessType.FIELD)
public class RegistrarPoc extends RegistrarPocBase {
diff --git a/core/src/main/java/google/registry/model/registrar/RegistrarPocBase.java b/core/src/main/java/google/registry/model/registrar/RegistrarPocBase.java
index ad43446de..085475d33 100644
--- a/core/src/main/java/google/registry/model/registrar/RegistrarPocBase.java
+++ b/core/src/main/java/google/registry/model/registrar/RegistrarPocBase.java
@@ -98,12 +98,7 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
/** The name of the contact. */
@Expose String name;
- /**
- * The contact email address of the contact.
- *
- *
This is different from the login email which is assgined to the regstrar and cannot be
- * changed.
- */
+ /** The contact email address of the contact. */
@Expose @Transient String emailAddress;
@Expose @Transient public String registrarId;
@@ -123,9 +118,6 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
*/
@Expose Set types;
- /** A GAIA email address that was assigned to the registrar for console login purpose. */
- String loginEmailAddress;
-
/**
* Whether this contact is publicly visible in WHOIS registrar query results as an Admin contact.
*/
@@ -219,10 +211,6 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
return visibleInDomainWhoisAsAbuse;
}
- public String getLoginEmailAddress() {
- return loginEmailAddress;
- }
-
public Builder extends RegistrarPocBase, ?> asBuilder() {
return new Builder<>(clone(this));
}
@@ -286,13 +274,6 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
+ "Registrar Abuse contact info: ")
.append(getVisibleInDomainWhoisAsAbuse() ? "Yes" : "No")
.append('\n');
- result
- .append("Registrar-Console access: ")
- .append(getLoginEmailAddress() != null ? "Yes" : "No")
- .append('\n');
- if (getLoginEmailAddress() != null) {
- result.append("Login Email Address: ").append(getLoginEmailAddress()).append('\n');
- }
return result.toString();
}
@@ -310,7 +291,6 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
.put("visibleInDomainWhoisAsAbuse", visibleInDomainWhoisAsAbuse)
.put("allowedToSetRegistryLockPassword", allowedToSetRegistryLockPassword)
.put("registryLockAllowed", isRegistryLockAllowed())
- .put("loginEmailAddress", loginEmailAddress)
.build();
}
@@ -411,11 +391,6 @@ public class RegistrarPocBase extends ImmutableObject implements Jsonifiable, Un
return thisCastToDerived();
}
- public B setLoginEmailAddress(String loginEmailAddress) {
- getInstance().loginEmailAddress = loginEmailAddress;
- return thisCastToDerived();
- }
-
public B setAllowedToSetRegistryLockPassword(boolean allowedToSetRegistryLockPassword) {
if (allowedToSetRegistryLockPassword) {
getInstance().registryLockPasswordSalt = null;
diff --git a/core/src/main/java/google/registry/tools/RegistrarPocCommand.java b/core/src/main/java/google/registry/tools/RegistrarPocCommand.java
index 64c6c2ce4..37b7b5d60 100644
--- a/core/src/main/java/google/registry/tools/RegistrarPocCommand.java
+++ b/core/src/main/java/google/registry/tools/RegistrarPocCommand.java
@@ -41,7 +41,6 @@ import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import javax.annotation.Nullable;
@@ -87,12 +86,6 @@ final class RegistrarPocCommand extends MutatingCommand {
+ " and will be used as the console login email, if --login_email is not specified.")
String email;
- @Nullable
- @Parameter(
- names = "--login_email",
- description = "Console login email address. If not specified, --email will be used.")
- String loginEmail;
-
@Nullable
@Parameter(
names = "--registry_lock_email",
@@ -115,13 +108,6 @@ final class RegistrarPocCommand extends MutatingCommand {
validateWith = OptionalPhoneNumberParameter.class)
private Optional fax;
- @Nullable
- @Parameter(
- names = "--allow_console_access",
- description = "Enable or disable access to the registrar console for this contact.",
- arity = 1)
- Boolean allowConsoleAccess;
-
@Nullable
@Parameter(
names = "--visible_in_whois_as_admin",
@@ -173,7 +159,7 @@ final class RegistrarPocCommand extends MutatingCommand {
protected void init() throws Exception {
checkArgument(mainParameters.size() == 1,
"Must specify exactly one client identifier: %s", ImmutableList.copyOf(mainParameters));
- String clientId = mainParameters.get(0);
+ String clientId = mainParameters.getFirst();
Registrar registrar =
checkArgumentPresent(
Registrar.loadByRegistrarId(clientId), "Registrar %s not found", clientId);
@@ -261,9 +247,6 @@ final class RegistrarPocCommand extends MutatingCommand {
}
builder.setTypes(nullToEmpty(contactTypes));
- if (Objects.equals(allowConsoleAccess, Boolean.TRUE)) {
- builder.setLoginEmailAddress(loginEmail == null ? email : loginEmail);
- }
if (visibleInWhoisAsAdmin != null) {
builder.setVisibleInWhoisAsAdmin(visibleInWhoisAsAdmin);
}
@@ -308,13 +291,6 @@ final class RegistrarPocCommand extends MutatingCommand {
if (visibleInDomainWhoisAsAbuse != null) {
builder.setVisibleInDomainWhoisAsAbuse(visibleInDomainWhoisAsAbuse);
}
- if (allowConsoleAccess != null) {
- if (allowConsoleAccess.equals(Boolean.TRUE)) {
- builder.setLoginEmailAddress(loginEmail == null ? email : loginEmail);
- } else {
- builder.setLoginEmailAddress(null);
- }
- }
if (allowedToSetRegistryLockPassword != null) {
builder.setAllowedToSetRegistryLockPassword(allowedToSetRegistryLockPassword);
}
diff --git a/core/src/main/java/google/registry/ui/server/RegistrarFormFields.java b/core/src/main/java/google/registry/ui/server/RegistrarFormFields.java
index 3f646c88c..5759d5c5f 100644
--- a/core/src/main/java/google/registry/ui/server/RegistrarFormFields.java
+++ b/core/src/main/java/google/registry/ui/server/RegistrarFormFields.java
@@ -193,9 +193,6 @@ public final class RegistrarFormFields {
public static final FormField CONTACT_FAX_NUMBER_FIELD =
FormFields.PHONE_NUMBER.asBuilderNamed("faxNumber").build();
- public static final FormField CONTACT_LOGIN_EMAIL_ADDRESS_FIELD =
- FormFields.NAME.asBuilderNamed("loginEmailAddress").build();
-
public static final FormField