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

[BUG] Can't recreate a user with an email address that was previously removed #194

Closed
ar3diu opened this issue Jun 16, 2022 · 5 comments
Closed
Assignees
Labels
component: api The API component component: ui The UI component source: community Submitted by the community status: qa Status Quality Assurance type: bug Something isn't working

Comments

@ar3diu
Copy link

ar3diu commented Jun 16, 2022

Describe the bug
It seems that you cannot reuse an email address for a new user account if it was part of a user account that was deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Create a user account A with email address admin@example.com.
  2. Remove the user account A.
  3. Try to create a new user account B using the same email address admin@example.com.
  4. See error User with this e-mail already exists.

Expected behavior
You should be able to reuse an email address once you remove the user account associated with it.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Browser: Chromium
  • Version: 2022.05.01
@ar3diu ar3diu added status: triage Items needing triage type: bug Something isn't working labels Jun 16, 2022
@ar3diu ar3diu changed the title [BUG] Can't recreate a user with the same email address after it's removed [BUG] Can't recreate a user with an email address that was previously removed Jun 16, 2022
@n3tsurge
Copy link
Contributor

n3tsurge commented Jun 16, 2022 via email

@ar3diu
Copy link
Author

ar3diu commented Jun 16, 2022

For example, in my case, I accidentally deleted it. Otherwise, you're right, there would be no reason to do it while you can edit it.

@n3tsurge
Copy link
Contributor

n3tsurge commented Jun 16, 2022 via email

@ar3diu
Copy link
Author

ar3diu commented Jun 16, 2022

Sounds good. Thanks for the information! 😀

@n3tsurge n3tsurge added component: api The API component component: ui The UI component status: in progress An item that is currently being worked. source: community Submitted by the community status: qa Status Quality Assurance and removed status: triage Items needing triage status: in progress An item that is currently being worked. labels Jun 16, 2022
@ar3diu
Copy link
Author

ar3diu commented Jun 17, 2022

Meanwhile, if anyone is looking for a fix, as Brian suggested:

POST /<reflex_users_index>/_update/<id>
{
    "doc" : {
        "deleted": "false",
        "locked": "false",
        "username": "user_name"
    }
}

@n3tsurge n3tsurge self-assigned this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: api The API component component: ui The UI component source: community Submitted by the community status: qa Status Quality Assurance type: bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants