]> WPIA git - gigi.git/commitdiff
UPD: Added isVerified()
authorJanis Streib <janis@dogcraft.de>
Thu, 24 Jul 2014 20:12:50 +0000 (22:12 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 24 Jul 2014 23:44:38 +0000 (01:44 +0200)
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();
+       }
 }