deleted stringstream
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
This commit is contained in:
1 parent
427444890b
commit
a89d0e33e4
5 files changed
+18
-24
No files matched your search
@@ -67,11 +67,10 @@ void delete_user(const httplib::Request& request, httplib::Response& response)
|
||||
bool found = false;
|
||||
for (size_t i = 0; i < all_users.size(); i++) {
|
||||
if (all_users[i]["id"] == deluserid) {
|
||||
std::stringstream syslogstring;
|
||||
syslogstring << "user deleted [" << all_users[i]["username"] << "]";
|
||||
std::string syslogstring = "user deleted [" + std::string(all_users[i]["username"]) + "]";
|
||||
all_users.erase(i);
|
||||
found = true;
|
||||
syslog(LOG_INFO, syslogstring.str().c_str());
|
||||
syslog(LOG_INFO, syslogstring.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user