I have a simpler way to create a new user in Django
Also, I request that (From the user), I want to send in the administrator's email, and just the administrator can enable that account. The user has to wait an answer from the administrator. If the administrator enables that account, then the user is going to be able to use the account!
with user There are already some apps that allow you to handle registrations, for example but in your case this is a bit difficult because you want administrators to activate those users. So I suggest you look at the source code. It is very clear and easy to understand. Just read the code and you get the point. is_active = False , then you can easily DJGongo Adradman can filter on the panel. Or you can use the degego
signal , such as the signal to send an email to the administrator's email, the email can be included with an activation link which is unique to activating the user . To keep the inactive user you can create a different model and generate a random handwriting key for each record. You can use that random-hash key (token) in the activation link that you are sending to the administrator's email.
No comments:
Post a Comment