userstyles-world / userstyles.world

⭐ Website to browse and share UserCSS userstyles. A modern replacement for UserStyles.org made by the userstyles community.
https://userstyles.world
GNU Affero General Public License v3.0
339 stars 15 forks source link

Unable to create new account after deleting one with same email #224

Open MonoScyron opened 1 year ago

MonoScyron commented 1 year ago

Registered an account under an email address, then deleted it to change the username. Attempting to register a new account with the same email and different username sent a verification link that resulted in a "Register failed" message. Attempting to sign-in using GitHub results in this page being displayed:

Screenshot 2023-06-22 at 22-30-56 User not found — UserStyles world

Clicking the sign-in button directs to the same page.

Additional context:

vednoc commented 1 year ago

Try again, it should work now. Also, please don't close this issue because I want to fix soft deletion once and for all.

MonoScyron commented 1 year ago

Just tried to register with the same username and email as when I encountered the bug. The verification link was sent but I was still given a "Register failed" message.

vednoc commented 1 year ago

Interestingly enough, I can see that there's a new account with the same username as on GitHub. Could you try to sign in?

MonoScyron commented 1 year ago

Just tried and it logged in fine. Not sure what happened with the verification email, but it looks like the account creation worked 👍

vednoc commented 1 year ago

I can see that our database got locked for five seconds, as well as three other attempts within a minute, so that could be why. Not entirely sure why it happened, but we do hash passwords during that process and it usually takes a bit of time for bcrypt to complete. The traffic doesn't look unusual either. This situation is where it would've been really handy if we had tracing.