]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/User.java
UPD: Forcing Update to be single-update or fail otherwise.
[gigi.git] / src / org / cacert / gigi / dbObjects / User.java
index 23636a919382af0a64136587e6f239c30fc80077..b42b6d51f6874f1314511ee2367e9b0467b298d1 100644 (file)
@@ -141,9 +141,7 @@ public class User extends CertificateOwner {
         ps = DatabaseConnection.getInstance().prepare("UPDATE users SET `password`=? WHERE id=?");
         ps.setString(1, PasswordHash.hash(newPass));
         ps.setInt(2, getId());
-        if (ps.executeUpdate() != 1) {
-            throw new GigiApiException("Password update failed.");
-        }
+        ps.executeUpdate();
     }
 
     public void setName(Name name) {