rpcauth: Make it possible to provide a custom password

This adds the functionality to specify a custom password to
`rpcauth.py`, as well as makes the code (IMO) easier to understand.
This commit is contained in:
Wladimir J. van der Laan committed 2018-05-02 05:29:22 +02:00
1 parent 57c57df86f
commit 2a89b0c812
3 files changed
+17 -11

No files matched your search

+4
View File
@@ -8,3 +8,7 @@ Create login credentials for a JSON-RPC user.
Usage:
./rpcauth.py <username>
in which case the script will generate a password. To specify a custom password do:
./rpcauth.py <username> <password>