diff --git a/HealthHaven/src/org/healthhaven/db/models/AccountDAO.java b/HealthHaven/src/org/healthhaven/db/models/AccountDAO.java index 92c6e25..1105e94 100644 --- a/HealthHaven/src/org/healthhaven/db/models/AccountDAO.java +++ b/HealthHaven/src/org/healthhaven/db/models/AccountDAO.java @@ -162,7 +162,7 @@ public static synchronized JSONObject updateTemporaryUserAfterFirstLogin(Connect // Step 3: Update users table // Step 5: Update authentication table (with password update) String usersUpdateSql = "UPDATE healthhaven.users SET legalfirstname = ?, legallastname = ?, address = ?, data_sharing = TRUE WHERE userid = ?"; - String authenticationUpdateSql = "UPDATE healthhaven.authentication SET password = ?, totp_key = ?, reset = ?, salt = ?, hashpass=? WHERE userid = ?"; + String authenticationUpdateSql = "UPDATE healthhaven.authentication SET totp_key = ?, reset = ?, salt = ?, hashpass=? WHERE userid = ?"; if (!updateUserTable(conn, usersUpdateSql, legalfirstname, legallastname, address, userId) || !updateAuthenticationTable(conn, authenticationUpdateSql, password, true, TOTP.genSecretKey(), userId)) {