django-inspectional-registration icon indicating copy to clipboard operation
django-inspectional-registration copied to clipboard

How can I bypass the admin accepting/rejecting step in the user registration process?

Open sankalpanand opened this issue 9 years ago • 5 comments

I am developing an application where an admin invites a user. The user opens the same registration page provided by this package. When he registers, I don't want the admin to accept/reject his request and don't want to send the verification email (since admin is requesting him to sign up). How can I avoid these three steps from the 5-step process provided by this application?

I greatly appreciate your help. Thanks.

sankalpanand avatar Jun 22 '15 23:06 sankalpanand

Hum... If you don't need the inspection steps, why don't you use django-registration with BASIC auth on the registration page or so on? I don't really get your situation...

lambdalisue avatar Jun 23 '15 00:06 lambdalisue

In my application there are two scenarios-

  1. User registers himself - here I need 5 step registration.
  2. Admin invites user to register - here I need 2 step registration. I don't want the admin to accept/reject again since the admin himself sent the invitation.

Therefore, for 1, I need a 5 step process. However, for 2, I need a 2 step process.

sankalpanand avatar Jun 23 '15 02:06 sankalpanand

Hum...the library wasn't built for that kind of usage thus you need to implement your own code to do that. this library send a signal like https://django-inspectional-registration.readthedocs.org/en/latest/faq.html#i-want-to-use-django-inspectional-registration-but-i-don-t-need-inspection-step so you may allow to do what you want with that signal i gusee. anyway, there is no simple solution for that.

lambdalisue avatar Jun 23 '15 04:06 lambdalisue

you prob. need to inherit the default backend to custamize the behaviour while default one is just for a simple 5 step registration. i'm sure that you can get what you want with using your own backend but it is a bit complicated (there is no document thvs you need to read the source code to get how to create a custom backend)

lambdalisue avatar Jun 23 '15 04:06 lambdalisue

I've done something similar, basically create a new class that inherits from the default backend and override whatever methods your need to implement the functionality that you need.

mick-t avatar Nov 29 '16 19:11 mick-t