etesync-server/django_etebase
Tom Hacohen 843b59a0ac Login/Changepassword: change to verifying the hostname without the part.
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.
2020-11-02 10:16:06 +02:00
..
drf_msgpack drf_msgpack: add code to parse/serialise msgpack 2020-06-29 14:21:43 +03:00
migrations Collections: add support for collection types. 2020-10-13 18:39:18 +03:00
token_auth Increase token ttl to 30 days. 2020-07-12 11:27:47 +03:00
__init__.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
admin.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
app_settings.py Account: add a dashboard url endpoint. 2020-10-08 21:06:33 +03:00
apps.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
exceptions.py Exceptions: have correct code/status_code for every error. 2020-07-30 10:13:24 +03:00
models.py Collections: add support for collection types. 2020-10-13 18:39:18 +03:00
parsers.py Chunk uploading: implement properly using a custom Parser. 2020-08-04 14:15:25 +03:00
permissions.py Permissions: workaround DRF bug and expose exception code. 2020-07-30 10:17:33 +03:00
renderers.py Views: move the base64 encoding to the renderers. 2020-06-29 15:39:40 +03:00
serializers.py Disallow creating new collections without a collection type set. 2020-11-01 11:29:01 +02:00
signals.py Signup: send a signal on account signup. 2020-09-02 12:54:50 +03:00
tests.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
urls.py Move the etebase urls configuration to django_etebase. 2020-06-28 17:11:20 +03:00
utils.py Disable signups by default. 2020-09-27 09:42:01 +03:00
views.py Login/Changepassword: change to verifying the hostname without the part. 2020-11-02 10:16:06 +02:00