Deleting account and signing back in doesn't remove state 'REMOVED'
Deleting account and signing back in doesn't remove state: 'REMOVED'
.
state: 'REMOVED'
is added on deletion in the modules/rooms/lib/user-removal-service.js
This seems to only affect GitLab/Twitter based accounts. With GitHub accounts, we reset state
to undefined
in server/web/strategies/github-user.js
Reproduction steps
- Sign in with a GitLab or Twitter account, ex.
MadLittleMods_gitlab
- Delete account, https://gitlab.com/gitlab-org/gitter/webapp/blob/develop/docs/accounts.md#how-do-i-delete-my-account
- Sign back in with the same account
- Notice that when you join a room that you are greyed out in the roster and have a "MadLittleMods_gitlab is not on Gitter yet" message in the popover
- You can verify the
state
by checking MongoDB:mongo localhost:27017
->use gitter
->db.users.findOne({ username: 'MadLittleMods_gitlab' })
still showsstate: 'REMOVED'
Relevant code
Edited by Eric Eastwood