Renamed multiple database tables
This commit is contained in:
@@ -15,7 +15,7 @@ class API_mfa extends API
|
||||
$this->checkPermissions('admin-access-admins-mfa', 'RW');
|
||||
}
|
||||
|
||||
$query = "UPDATE vc_users SET user_two_factor_enabled = 0, user_two_factor_secret = NULL WHERE user_uuid = ?";
|
||||
$query = "UPDATE system_users SET user_two_factor_enabled = 0, user_two_factor_secret = NULL WHERE user_uuid = ?";
|
||||
$stmt = $this->prepareStatement($query);
|
||||
$stmt->bind_param("s", $this->data['user_uuid']);
|
||||
$this->executeStatement($stmt);
|
||||
@@ -30,7 +30,7 @@ class API_mfa extends API
|
||||
$this->apiOutput(401, ['error' => 'you are not allowed to enable mfa for others']);
|
||||
}
|
||||
|
||||
$query = "UPDATE vc_users SET user_two_factor_enabled = 1, user_two_factor_secret = ? WHERE user_uuid = ?";
|
||||
$query = "UPDATE system_users SET user_two_factor_enabled = 1, user_two_factor_secret = ? WHERE user_uuid = ?";
|
||||
$stmt = $this->prepareStatement($query);
|
||||
$stmt->bind_param("ss", $this->data['user_two_factor_secret'], $this->data['user_uuid']);
|
||||
$this->executeStatement($stmt);
|
||||
|
||||
Reference in New Issue
Block a user