I want to create a login form for users to sign into a django site. The site is set up using django rest framework and I am considering having the login form make a request through the site's api.
In the past I have just used a standard django form for user logins. I am concerned that if the new login form sends the request through the site's API instead, there might be a security vulnerability of some sort. However I don't know if this is true, or what the issue with security might actually be.
Should I stick with django forms for authenticating users? Or is it safe to sign users in through the api?