Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tokens programmatically #125

Open
florczakraf opened this issue Dec 29, 2020 · 1 comment
Open

Create tokens programmatically #125

florczakraf opened this issue Dec 29, 2020 · 1 comment
Assignees

Comments

@florczakraf
Copy link

I'm looking for a way to create user accounts without a password and initiate the reset procedure without the extra work on front-end or user side – it's supposed to be an atomic operation from my API's POV. Such functionality would also be helpful when creating mass or time-based password resets. Unfortunately, there's quite some logic hidden in the ResetPasswordRequestToken's post that prevents one from doing so.

What do you think about extracting and exposing it for the programmatic use? I can imagine two ways it could be done at the moment:

  1. create a public function of email and/or register a new signal handler
  2. follow the UNIX philosophy mentioned in the README file a one step further and extract the core resetting functionality to a separate package so it could be used without DRF and only keep a thin layer of DRF-specific usage here.

I've already seen #97 which partially covers this but it also introduces a completely new concept of "registration tokens" which are not needed for the use cases presented above.

If we reach an agreement on the scope of the change, I'd be happy to work on it and submit a PR.

@nezhar
Copy link
Member

nezhar commented Aug 10, 2021

Relates to #141

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

No branches or pull requests

2 participants