mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Make GET return an info message
This commit is contained in:
@@ -99,6 +99,9 @@ class UserAPILoginView(viewsets.ViewSet):
|
||||
serializer_class = UserApiSerializer
|
||||
throttle_scope = 'login'
|
||||
|
||||
def get(self, request):
|
||||
return Response({'message': "You must send a 'username' and 'password' via POST"})
|
||||
|
||||
def post(self, request):
|
||||
data = request.data
|
||||
serializer = self.serializer_class(data=data)
|
||||
|
||||
Reference in New Issue
Block a user