Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Saefurukawa committed May 1, 2024
1 parent eaafa4f commit 6f5a209
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HealthHaven/src/org/healthhaven/db/models/AccountDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ public static synchronized JSONObject updateTemporaryUserAfterFirstLogin(Connect
try (PreparedStatement stmt = conn.prepareStatement(sql)) {
stmt.setString(1, email);
ResultSet data_rs = stmt.executeQuery();
boolean resetValue = data_rs.getBoolean("reset");
boolean resetValue = false;
if (data_rs.next()) {
resetValue = data_rs.getBoolean("reset");
}

if (resetValue) {
result = "FAILURE";
reason = "Account already exist";
Expand Down

0 comments on commit 6f5a209

Please sign in to comment.