]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/EmailAddress.java
UPD: Added isVerified()
[gigi.git] / src / org / cacert / gigi / EmailAddress.java
index feb65915cd1397404683834fb3563273252f1f14..6d91e219f1d5d34d8f78a0c4fc2e9fe9d775db49 100644 (file)
@@ -96,6 +96,7 @@ public class EmailAddress {
                                ps2.setInt(1, owner.getId());
                                ps2.setString(2, address);
                                ps2.execute();
+                               this.hash = "";
                        } catch (SQLException e) {
                                throw new GigiApiException(e);
                        }
@@ -114,4 +115,8 @@ public class EmailAddress {
                        throw new IllegalArgumentException(e);
                }
        }
+
+       public boolean isVerified() {
+               return hash.isEmpty();
+       }
 }