define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly

This commit is contained in:
2021-07-21 12:12:41 -05:00
parent 7ed847251f
commit 36329796f0
4 changed files with 11 additions and 11 deletions

View File

@ -48,7 +48,7 @@ def validate_dollars():
def btcpay_payment():
errors = list()
if current_app.config['BTCPAY_PRIVATE_KEY'] == "":
if not current_app.config['BTCPAY_ENABLED']:
flash("BTCPay is not enabled on this server")
return redirect(url_for("console.account_balance"))