diff --git a/api/funkwhale_api/common/auth.py b/api/funkwhale_api/common/auth.py index 6f99b3bba..75839b936 100644 --- a/api/funkwhale_api/common/auth.py +++ b/api/funkwhale_api/common/auth.py @@ -9,6 +9,7 @@ from rest_framework import exceptions from rest_framework_jwt.settings import api_settings from rest_framework_jwt.authentication import BaseJSONWebTokenAuthentication +from funkwhale_api.users.models import User class TokenHeaderAuth(BaseJSONWebTokenAuthentication): @@ -40,7 +41,7 @@ class TokenAuthMiddleware: auth = TokenHeaderAuth() try: user, token = auth.authenticate(scope) - except exceptions.AuthenticationFailed: + except (User.DoesNotExist, exceptions.AuthenticationFailed): user = AnonymousUser() scope['user'] = user diff --git a/changes/changelog.d/100.bugfix b/changes/changelog.d/100.bugfix new file mode 100644 index 000000000..cad193d52 --- /dev/null +++ b/changes/changelog.d/100.bugfix @@ -0,0 +1 @@ +Added some feedback on the play button (#100) diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index 451cdcf01..679f8b795 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -1,6 +1,9 @@