Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Saefurukawa committed May 1, 2024
1 parent 505a50f commit 731df26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HealthHaven/src/org/healthhaven/db/models/AccountDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 731df26

Please sign in to comment.