Print message from auth (#141)

This commit is contained in:
Lion 2024-11-05 10:32:39 +01:00 committed by GitHub
commit 8a8e0be1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,7 @@ std::string Login(const std::string& fields) {
if (d.contains("message")) {
d.erase("private_key");
d.erase("public_key");
debug("Authentication result: " + d["message"].get<std::string>());
return d.dump();
}
return GetFail("Invalid message parsing!");