mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-07 23:29:05 +01:00
add remote access
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user