Changeset View
Changeset View
Standalone View
Standalone View
src/httprpc.cpp
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | |||||
static bool InitRPCAuthentication() { | static bool InitRPCAuthentication() { | ||||
if (gArgs.GetArg("-rpcpassword", "") == "") { | if (gArgs.GetArg("-rpcpassword", "") == "") { | ||||
LogPrintf("No rpcpassword set - using random cookie authentication.\n"); | LogPrintf("No rpcpassword set - using random cookie authentication.\n"); | ||||
if (!GenerateAuthCookie(&strRPCUserColonPass)) { | if (!GenerateAuthCookie(&strRPCUserColonPass)) { | ||||
// Same message as AbortNode. | // Same message as AbortNode. | ||||
uiInterface.ThreadSafeMessageBox( | uiInterface.ThreadSafeMessageBox( | ||||
_("Error: A fatal internal error occurred, see debug.log for " | _("Error: A fatal internal error occurred, see debug.log for " | ||||
"details") | "details"), | ||||
.translated, | |||||
"", CClientUIInterface::MSG_ERROR); | "", CClientUIInterface::MSG_ERROR); | ||||
return false; | return false; | ||||
} | } | ||||
} else { | } else { | ||||
LogPrintf("Config options rpcuser and rpcpassword will soon be " | LogPrintf("Config options rpcuser and rpcpassword will soon be " | ||||
"deprecated. Locally-run instances may remove rpcuser to use " | "deprecated. Locally-run instances may remove rpcuser to use " | ||||
"cookie-based auth, or may be replaced with rpcauth. Please " | "cookie-based auth, or may be replaced with rpcauth. Please " | ||||
"see share/rpcauth for rpcauth auth generation.\n"); | "see share/rpcauth for rpcauth auth generation.\n"); | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |