fix(subscription): Allow remote_login even if subscription.expiry is not set

remote_login is used for the "Subscribe" banner as well as the Manage Subscription button.
This commit is contained in:
Aditya Hase 2022-12-26 14:18:58 +05:30
parent 5e6ac70644
commit 6f8a087c5f
No known key found for this signature in database
GPG key ID: 0A55F0FCA0234972

View file

@ -9,7 +9,7 @@ import frappe
def remote_login():
try:
login_url = frappe.conf.subscription["login_url"]
if frappe.conf.subscription["expiry"] and login_url:
if login_url:
resp = requests.post(login_url)
if resp.status_code != 200: