From dfbb936cdfd82de0ee885b742cb08738580fe97f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 30 Jan 2020 22:33:57 +0500 Subject: [PATCH] external app check --- websiteFunctions/website.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 15bd84025..9b48400fe 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -2596,6 +2596,11 @@ StrictHostKeyChecking no website = Websites.objects.get(domain=self.domain) + if website.externalApp != data['externalApp']: + data_ret = {'status': 0, 'error_message': 'External app mis-match.'} + json_data = json.dumps(data_ret) + return HttpResponse(json_data) + uBuntuPath = '/etc/lsb-release' if os.path.exists(uBuntuPath):