feat: lib updates and more (#1187)

This PR performs the following changes:

- update python in Dockerfile
- updates all python libraries (including Django)
- makes md5sum calculation redundant by default
- updates Postgresql used in Docker. For new installations this is ok. For existing ones this is backwards incompatible, and restore through pg_dump+pg_restore has to be performed in order to utilize Postgres 17 (since its not compatible with previous versions and will complain)
- fixes issues with HLS, and adds test to ensure they won't happen again
- allows . and @ in usernames
This commit is contained in:
Markos Gogoulos
2025-02-10 11:34:00 +02:00
committed by GitHub
parent a7562c244e
commit 0392dbe1ed
20 changed files with 245 additions and 192 deletions

View File

@ -93,16 +93,16 @@ class LoginSerializer(serializers.Serializer):
username = data.get('username', None)
password = data.get('password', None)
if settings.ACCOUNT_AUTHENTICATION_METHOD == 'username' and not username:
if settings.ACCOUNT_LOGIN_METHODS == {"username"} and not username:
raise serializers.ValidationError('username is required to log in.')
else:
username_or_email = username
if settings.ACCOUNT_AUTHENTICATION_METHOD == 'email' and not email:
if settings.ACCOUNT_LOGIN_METHODS == {"email"} and not email:
raise serializers.ValidationError('email is required to log in.')
else:
username_or_email = email
if settings.ACCOUNT_AUTHENTICATION_METHOD == 'username_email' and not (username or email):
if settings.ACCOUNT_LOGIN_METHODS == {"username", "email"} and not (username or email):
raise serializers.ValidationError('username or email is required to log in.')
else:
username_or_email = username or email