mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
rename pk_json to private_key_json
This commit is contained in:
parent
ba82b8990e
commit
c0a807194c
@ -21,10 +21,10 @@ Result<ident::Identity, std::string> ident::login_cached() noexcept {
|
|||||||
return fmt::format("Failed to read cached key: {}", e.what());
|
return fmt::format("Failed to read cached key: {}", e.what());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string pk_json {};
|
std::string private_key_json {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
pk_json = nlohmann::json {
|
private_key_json = nlohmann::json {
|
||||||
{ "pk", private_key }
|
{ "pk", private_key }
|
||||||
}.dump();
|
}.dump();
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
@ -33,7 +33,7 @@ Result<ident::Identity, std::string> ident::login_cached() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// login and remember (again)
|
// login and remember (again)
|
||||||
return detail::login(pk_json, true);
|
return detail::login(private_key_json, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ident::is_login_cached() noexcept {
|
bool ident::is_login_cached() noexcept {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user