mirror of
https://github.com/etesync/server
synced 2024-11-18 06:48:08 +00:00
843b59a0ac
Verifying the port was causing issues, and anyhow, this check is paranoid and isn't strictly necessary for security. The problem is that Django's `get_host()` and the equivalent on some platforms returns it without the port, though on others (like e.g. the library we use from JS) it returns with the port. This was inconsistent and was causing authentication to fail. We thus relaxed the test to not include the port when matching, which should make it work consistently across all platforms. |
||
---|---|---|
.. | ||
drf_msgpack | ||
migrations | ||
token_auth | ||
__init__.py | ||
admin.py | ||
app_settings.py | ||
apps.py | ||
exceptions.py | ||
models.py | ||
parsers.py | ||
permissions.py | ||
renderers.py | ||
serializers.py | ||
signals.py | ||
tests.py | ||
urls.py | ||
utils.py | ||
views.py |