rename pk_json to private_key_json

This commit is contained in:
Lion 2024-03-03 23:23:08 +01:00 committed by GitHub
parent ba82b8990e
commit c0a807194c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,10 +21,10 @@ Result<ident::Identity, std::string> ident::login_cached() noexcept {
return fmt::format("Failed to read cached key: {}", e.what());
}
std::string pk_json {};
std::string private_key_json {};
try {
pk_json = nlohmann::json {
private_key_json = nlohmann::json {
{ "pk", private_key }
}.dump();
} catch (const std::exception& e) {
@ -33,7 +33,7 @@ Result<ident::Identity, std::string> ident::login_cached() noexcept {
}
// login and remember (again)
return detail::login(pk_json, true);
return detail::login(private_key_json, true);
}
bool ident::is_login_cached() noexcept {