mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-26 10:37:39 +01:00
Fix removal of recovery code
This commit is contained in:
parent
0aac8928af
commit
3b723bbbe9
@ -901,8 +901,8 @@ public class MySQL implements DataSource {
|
||||
@Override
|
||||
public void removeRecoveryCode(String name) {
|
||||
String sql = "UPDATE " + tableName
|
||||
+ " SET " + col.RECOVERY_CODE + " = NULL"
|
||||
+ " AND " + col.RECOVERY_EXPIRATION + " = NULL"
|
||||
+ " SET " + col.RECOVERY_CODE + " = NULL, "
|
||||
+ col.RECOVERY_EXPIRATION + " = NULL"
|
||||
+ " WHERE " + col.NAME + " = ?;";
|
||||
try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(sql)) {
|
||||
pst.setString(1, name.toLowerCase());
|
||||
|
@ -631,8 +631,8 @@ public class SQLite implements DataSource {
|
||||
@Override
|
||||
public void removeRecoveryCode(String name) {
|
||||
String sql = "UPDATE " + tableName
|
||||
+ " SET " + col.RECOVERY_CODE + " = NULL"
|
||||
+ " AND " + col.RECOVERY_EXPIRATION + " = NULL"
|
||||
+ " SET " + col.RECOVERY_CODE + " = NULL, "
|
||||
+ col.RECOVERY_EXPIRATION + " = NULL"
|
||||
+ " WHERE " + col.NAME + " = ?;";
|
||||
try (PreparedStatement pst = con.prepareStatement(sql)) {
|
||||
pst.setString(1, name.toLowerCase());
|
||||
|
Loading…
Reference in New Issue
Block a user