revert django-radius from 1.3.3 to 1.1.0

This commit is contained in:
adamscmRH
2018-06-22 15:01:11 -04:00
parent a8504d7bd7
commit 8cc77234fc
3 changed files with 5 additions and 6 deletions

View File

@@ -182,13 +182,13 @@ class RADIUSBackend(BaseRADIUSBackend):
Custom Radius backend to verify license status
'''
def authenticate(self, request, username, password):
def authenticate(self, username, password):
if not django_settings.RADIUS_SERVER:
return None
if not feature_enabled('enterprise_auth'):
logger.error("Unable to authenticate, license does not support RADIUS authentication")
return None
return super(RADIUSBackend, self).authenticate(request, username, password)
return super(RADIUSBackend, self).authenticate(username, password)
def get_user(self, user_id):
if not django_settings.RADIUS_SERVER: