From 13e0011529c6248a6846d2ab11230994a86ace4e Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 8 Apr 2020 17:49:41 +0500 Subject: [PATCH] add remote access --- cloudAPI/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudAPI/views.py b/cloudAPI/views.py index 41cd78308..06cc35f7d 100755 --- a/cloudAPI/views.py +++ b/cloudAPI/views.py @@ -326,7 +326,7 @@ def access(request): if admin.api == 0: return cm.ajaxPre(0, 'API Access Disabled.') - if token == admin.token: + if token == admin.token.lstrip('Basic '): request.session['userID'] = admin.pk from django.shortcuts import redirect from baseTemplate.views import renderBase