delete user syslog bug

This commit is contained in:
wt
2024-07-03 10:20:51 +07:00
parent fa5097a23c
commit b3736a5124
+2 -2
View File
@@ -61,10 +61,10 @@ void delete_user(const httplib::Request &request, httplib::Response &response) {
bool found = false;
for (int i = 0; i < all_users.size(); i++) {
if (all_users[i]["id"] == deluserid) {
all_users.erase(i);
found = true;
std::stringstream syslogstring;
syslogstring << "user deleted [" << all_users[i]["username"] << "]";
all_users.erase(i);
found = true;
syslog(LOG_INFO, syslogstring.str().c_str());
break;
}