Disable BTCPay in the interface, if BTCPAY_PRIVATE_KEY is un-set #3

Злито
3wordchant злито 4 комітів з optional-btcpay до master 2021-07-21 18:20:41 +00:00
3 змінених файлів з 10 додано та 6 видалено
Showing only changes of commit 7ed847251f - Show all commits

@ -48,6 +48,10 @@ def validate_dollars():
def btcpay_payment():
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":
result = validate_dollars()
errors = result[0]