Make API ConnectRequest optional for passwordless connections (#9445)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-07-16 13:14:43 +12:00
1 parent e012fd5b32
commit 5c2dea79ef
6 files changed
+97 -14

No files matched your search

-2
View File
@@ -219,8 +219,6 @@ void APIServer::dump_config() {
}
#ifdef USE_API_PASSWORD
bool APIServer::uses_password() const { return !this->password_.empty(); }
bool APIServer::check_password(const std::string &password) const {
// depend only on input password length
const char *a = this->password_.c_str();