How can I do my logic in http://127.0.0.1:8000/rest-auth/login/
of django-rest-auth
When I login it is like below and the url is provide by django-rest-auth.
How can I do my logic in http://127.0.0.1:8000/rest-auth/login/
of django-rest-auth
When I login it is like below and the url is provide by django-rest-auth.
That page have information about which api endpoints you can override http://django-rest-auth.readthedocs.io/en/latest/configuration.html
for login you can use: 'LOGIN_SERIALIZER': 'path.to.custom.LoginSerializer', For realize custom registration logic and serializer I'm recommend to you read documentation of http://www.django-rest-framework.org/.
1. set it in your settings.py as shown in the docs,
2. Create Serailizer class
This is default Login Serializer class (copy and paste to url used above and edit as you want )
Note: You can use model Serializer also