gpodder / mygpo

The gpodder.net webservice
http://gpodder.net/
GNU Affero General Public License v3.0
281 stars 87 forks source link

Can't create account after deleting #318

Open Redcroft opened 4 years ago

Redcroft commented 4 years ago

Hi, Wanted to start again on gpodder and use a different username, old account was called richard2. Deleted the account and tried to create a new one but can't as:

The email address Richard@mythreed.com is already in use.

and trying to reset the login results in

Click on the link below to activate your account on gpodder.net

https://gpodder.net/activate/None

Thanks

stefankoegl commented 4 years ago

@fundatillus, can you please

Let me know if I can assist.

clementsjosh commented 4 years ago

I cannot locate any of the above user info in the production environment.

@Redcroft -- Please email support@gpodder.net to keep your info private. Send current username and email address.

clementsjosh commented 4 years ago

Confirmed. When testing on dev instance, same thing happens with username and/or password.

Seems like this might be a Django issue, though???

clementsjosh commented 4 years ago

It looks like when a user deletes their account, it only puts it in an inactive status, and requires an admin to delete the account.

clementsjosh commented 4 years ago

But, I'm not finding Redcroft, richard2, or richard@mythreed.com in the Inactive bucket.

clementsjosh commented 4 years ago

Are you still having the same problem, @Redcroft?

stefankoegl commented 4 years ago

It looks like when a user deletes their account, it only puts it in an inactive status, and requires an admin to delete the account.

There's a periodic job that deletes inactive users.

https://github.com/gpodder/mygpo/blob/720614b51dae4cc1b8f33fef663e07734afe3329/mygpo/users/tasks.py#L40-L57

This ensures that deleted users can be re-activated manually if they are deleted accidentally.

stefankoegl commented 4 years ago

To test if the issue persists after the deactivated user has been cleaned up, you could do the following

# don't keep disabled users
$ cat 0 >> envs/dev/ACTIVATION_VALID_DAYS

# manually trigger the cleanup job
$ envdir envs/dev/ python manage.py shell
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 

>>> from mygpo.users.tasks import remove_inactive_users
>>> remove_inactive_users()
Praveenkumar009 commented 4 years ago

Thanks for the [Insights]

SonOfHans commented 3 years ago

Hello. Sorry to revive an old thread, but this (or at least a very similar) issue still exists. Here are the steps I took to get stuck in this state:

  1. Register account using "adhansen" as the username
  2. Follow activation email
  3. Log in
  4. Delete account

Now if I attempt to register a new account with the same user name, it says the username is already in use, and if I use a different username but the same email it says the email is already in use. But when attempting to log in with that username, it states that I need to activate the account and resends a new activation link, which is simply "https://gpodder.net/activate/None".

spam0064 commented 5 months ago

Hello. Sorry to revive an old thread, but this (or at least a very similar) issue still exists. Here are the steps I took to get stuck in this state:

1. Register account using "adhansen" as the username

2. Follow activation email

3. Log in

4. Delete account

Now if I attempt to register a new account with the same user name, it says the username is already in use, and if I use a different username but the same email it says the email is already in use. But when attempting to log in with that username, it states that I need to activate the account and resends a new activation link, which is simply "https://gpodder.net/activate/None".

I can confirm, issue persists.