# Re: JSON-RPC password

Post by: satoshi on July 22, 2010, 02:34:23 AM

Quote from: gavinandresen on July 22, 2010, 01:11:26 AM

> TODO: dialog box or debug.log warning if no rpc.user/rpc.password is set, explaining how to set.

In many of the contexts of this RPC stuff, you can print to the console with fprintf(stdout, like this:<br>
\#if defined(\_\_WXMSW\_\_) && wxUSE_GUI<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyMessageBox("Warning: rpc password is blank, use -rpcpw=<password\>\n", "Bitcoin", wxOK | wxICON_EXCLAMATION);<br>
\#else<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stdout, "Warning: rpc password is blank, use -rpcpw=<password\>\n");<br>
\#endif

---

Source file: bitcoin-forum-satoshi-nakamoto.tgz

External link: https://bitcointalk.org/index.php?topic=461.msg4928#msg4928
