mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Removed check_secure as it precludes insecure logins over Docker.
This commit is contained in:
parent
88e126a6bd
commit
26ffca6a7a
1 changed files with 1 additions and 8 deletions
|
|
@ -336,14 +336,7 @@ class Auth(APIMixin):
|
|||
@staticmethod
|
||||
def check_secure():
|
||||
"""Check request, return False if using SSL or local connection."""
|
||||
if this.request.is_secure():
|
||||
return True # using SSL
|
||||
elif this.request.META['REMOTE_ADDR'] in [
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
]:
|
||||
return True # localhost
|
||||
raise MeteorError(403, 'Authentication refused without SSL.')
|
||||
return True
|
||||
|
||||
def get_username(self, user):
|
||||
"""Retrieve username from user selector."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue