Django backend user registration [closed]
I'm currently writing a system with users creation process involved. The system will have a 'site-administrator' who can create (and modify, delete) users. However, I'm stuck with the part of creating users.
What I want is:
- Site Administrator creates a user
- Django will create a one time password and send this to the user (based on email)
- User logs in
- System detects it's the first time and forces the user (via frontend) to update password
- User updates password and logs in with new credentials
- Bearer tokens (access / refresh) are issued
The frontend is VUE (with axios, pinia etc) but that's of no use for this question. The backend is Django, Djano Rest Framework, SimpleJWT and a MariaDB for storing info on the backend.
Thank you for taking the time to answer this question.