Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.41k stars 661 forks source link

Setting is_superuser and is_staff on Registration #587

Open tychodev321 opened 4 years ago

tychodev321 commented 4 years ago

Hello, I am trying to set the is_superuser and is_staff fields when a user Registers using the /rest-auth/registration/ (POST) or the /rest-auth/user/ (PUT) endpoints. Are these fields available in Django-Rest-Auth to be updated, or do I need to create custom code to do so? If so, does anyone have any guidance on how?

BarnabasSzabolcs commented 4 years ago

Hi,

this repo is not maintained anymore, so the development moved to dj-rest-auth. (reference: #568) It may be best, if you move this PR there. (and upgrade to using dj_rest_auth)

new repo link: https://github.com/jazzband/dj-rest-auth (I'm not the upkeeper of that repo, it just makes sense for me to help you write where it brings value.)

Best, Barney