mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 03:39:55 +02:00
Fix #798: Allow users with dots in their usernames to request a subsonic password
This commit is contained in:
parent
71b7f416cc
commit
b23e87e102
3 changed files with 17 additions and 0 deletions
|
@ -28,6 +28,7 @@ class UserViewSet(mixins.UpdateModelMixin, viewsets.GenericViewSet):
|
|||
queryset = models.User.objects.all()
|
||||
serializer_class = serializers.UserWriteSerializer
|
||||
lookup_field = "username"
|
||||
lookup_value_regex = r"[a-zA-Z0-9-_.]+"
|
||||
required_scope = "profile"
|
||||
|
||||
@action(methods=["get"], detail=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue