Print message from auth (#141)

This commit is contained in:
Lion authored and GitHub committed 2024-11-05 10:32:39 +01:00
commit 8a8e0be1a1
1 file changed
+1
+1
View File
@@ -91,6 +91,7 @@ std::string Login(const std::string& fields) {
if (d.contains("message")) { if (d.contains("message")) {
d.erase("private_key"); d.erase("private_key");
d.erase("public_key"); d.erase("public_key");
debug("Authentication result: " + d["message"].get<std::string>());
return d.dump(); return d.dump();
} }
return GetFail("Invalid message parsing!"); return GetFail("Invalid message parsing!");