Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

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

Open
sankalpanand opened this issue Jun 22, 2015 · 5 comments
Labels

Comments

@sankalpanand
Copy link

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.

@lambdalisue
Copy link
Owner

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...

@sankalpanand
Copy link
Author

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.

@lambdalisue
Copy link
Owner

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
Copy link
Owner

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)

@mick-t
Copy link
Contributor

mick-t commented Nov 29, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants