forked from 3wordchant/capsul-flask
Don't load /btcpay if BTCPAY_PRIVATE_KEY un-set
This commit is contained in:
parent
8b0ce0ba71
commit
bf7487f4f0
@ -48,6 +48,10 @@ def validate_dollars():
|
|||||||
def btcpay_payment():
|
def btcpay_payment():
|
||||||
errors = list()
|
errors = list()
|
||||||
|
|
||||||
|
if current_app.config['BTCPAY_PRIVATE_KEY'] == "":
|
||||||
|
flash("BTCPay is not enabled on this server")
|
||||||
|
return redirect(url_for("console.account_balance"))
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
result = validate_dollars()
|
result = validate_dollars()
|
||||||
errors = result[0]
|
errors = result[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user