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

This commit is contained in:
wt committed 2025-03-27 10:11:30 +07:00
1 parent 427444890b
commit a89d0e33e4
5 files changed
+18 -24

No files matched your search

+4 -6
View File
@@ -90,9 +90,8 @@ void change_password(const httplib::Request& request, httplib::Response& respons
if ((all_user["id"] == changepassuserid)) {
all_user["password"] = new_password;
found = true;
std::stringstream syslogstring;
syslogstring << "password changed for user [" << all_user["username"] << "]";
syslog(LOG_INFO, syslogstring.str().c_str());
std::string syslogstring = "password changed for user [" + std::string(all_user["username"]) + "]";
syslog(LOG_INFO, syslogstring.c_str());
break;
}
}
@@ -102,9 +101,8 @@ void change_password(const httplib::Request& request, httplib::Response& respons
if ((all_user["id"] == changepassuserid) && (all_user["password"] == old_password)) {
all_user["password"] = new_password;
found = true;
std::stringstream syslogstring;
syslogstring << "password changed for user [" << all_user["username"] << "]";
syslog(LOG_INFO, syslogstring.str().c_str());
std::string syslogstring = "password changed for user [" + std::string(all_user["username"]) + "]";
syslog(LOG_INFO, syslogstring.c_str());
break;
}
}