Home > Mobile >  User registration with admin authorization
User registration with admin authorization

Time:12-15

I was wonder if it is possible to include a way that when someone fill the user registration form to register, can the details be sent to an admin email for authorization before the user can login in django?

CodePudding user response:

Since you did not provide any code I will guide you the process, you can later come back more specific question if you are stuck :

  • Use the field is_active provided by Django from the User model to authorised access within your website.
  • Extends the field is_active to set the default to False or set it to false in the begging of your user view
  • Create a link with the ID of the user and a path to the Django Admin where you can update the user and active to True

In short yes, possible and pretty easy if you know a bit of Django.

  • Related