@Override
public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException {
- if (req.getParameter("emailType") != null) {
- String mail = AUTHORATIVE_EMAILS[Integer.parseInt(req.getParameter("email"))];
- target.addPing(DomainPingType.EMAIL, mail);
+ if (req.getParameter("emailType") != null && req.getParameter("email") != null) {
+ try {
+ String mail = AUTHORATIVE_EMAILS[Integer.parseInt(req.getParameter("email"))];
+ target.addPing(DomainPingType.EMAIL, mail);
+ } catch (NumberFormatException e) {
+ throw new GigiApiException("A email address is required");
+ }
}
if (req.getParameter("DNSType") != null) {
target.addPing(DomainPingType.DNS, tokenName + ":" + tokenValue);
<tr><th></th><th><?=_Verification mechanisms?></th></tr>
<tr>
- <td><input type="checkbox" name="emailType" value="y"<?=$!mail?>></td>
+ <td class='domainPinglogFirstCell'><input type="checkbox" name="emailType" value="y"<?=$!mail?>></td>
<td><?=_Verify by sending an email to authoritative email addresses?> </td>
</tr>
<tr>
.loginbox label {width:100px;display:block;float:left;}
.loginbox text {width:166px;display:block;float:left;}
.loginbox br {clear:left;}
-.loginbox h1 {font-size:1.9em;text-align:center;}
\ No newline at end of file
+.loginbox h1 {font-size:1.9em;text-align:center;}
+
+
+.domainPinglogFirstCell{
+ width: 15px;
+}
\ No newline at end of file