forked from 3wordchant/capsul-flask
define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly
This commit is contained in:
@ -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"))
|
||||
|
||||
|
Reference in New Issue
Block a user