Implement Basic Auth for API and Owner API (#1566)

* Add api_secret

* Add to base64 method

* Add basic auth in API

* Add Basic Auth to owner API

* Add flag to enable disable basic auth

* Add .api_secret file
This commit is contained in:
Quentin Le Sceller
2018-09-26 16:38:44 -04:00
committed by hashmap
parent acec59e249
commit 62fd8f2124
29 changed files with 427 additions and 228 deletions
+3 -4
View File
@@ -280,8 +280,8 @@ impl OutputPrintable {
let mut merkle_proof = None;
if output
.features
.contains(core::transaction::OutputFeatures::COINBASE_OUTPUT) && !spent
&& block_header.is_some()
.contains(core::transaction::OutputFeatures::COINBASE_OUTPUT)
&& !spent && block_header.is_some()
{
merkle_proof = chain.get_merkle_proof(&out_id, &block_header.unwrap()).ok()
};
@@ -564,8 +564,7 @@ impl BlockPrintable {
Some(&block.header),
include_proof,
)
})
.collect();
}).collect();
let kernels = block
.kernels()
.iter()