Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Users cannot delete their own accounts

Open georgemaschke opened this issue 2 years ago • 7 comments

Description:

Users cannot delete their own accounts under Rocket.Chat 5.0.4

Steps to reproduce:

  1. As an unprivileged (non-admin) user, log into Rocket.Chat account;
  2. Click on "My Account";
  3. Choose "Delete my account";
  4. Upon prompt, "If you are sure type in your username," type in user name and click "Delete" button;
  5. A prompt saying "invalid password" appears (user was logged in, and there was never any indication that the password was required)
  6. Account is not deleted.
  7. Repeat process, but provide password and confirm it before clicking "Delete my account."
  8. A prompt saying "invalid password appears" and account is not deleted.

Expected behavior:

Account is deleted.

Actual behavior:

Account is not deleted.

Server Setup Information:

  • Version of Rocket.Chat Server: 5.0.4
  • Operating System: Ubuntu 20.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: 14.19.3
  • MongoDB Version: 5.0.6

Client Setup Information

  • Desktop App or Browser Version: Brave 1.42.97 and Tor Browser 11.5.1
  • Operating System: macOS 12.5.1

Additional context

Relevant logs:

georgemaschke avatar Aug 26 '22 10:08 georgemaschke

duplicate of https://github.com/RocketChat/feature-requests/issues/695

ankar84 avatar Aug 26 '22 10:08 ankar84

It's not a duplicate of RocketChat/feature-requests#695. That report concerns deletion of DMs (that issue may be relevant to this one). However, this report concerns deletion of accounts.

georgemaschke avatar Aug 26 '22 10:08 georgemaschke

Sorry, my bad! You are right!

ankar84 avatar Aug 26 '22 10:08 ankar84

I confirm the deletion issue with locally created rocketchat accounts. Dialog asks for a username, but the password is required instead.

Deletion of accounts provisioned with Oauth works without issues.

Gummikavalier avatar Aug 26 '22 18:08 Gummikavalier

Entering the account password instead of the user name results in the account being deleted. The message presented after this is confusing, however. Instead of confirming account deletion, it unhelpfully states:

REGISTER USERNAME The username is used to allow others to mention you in messages. Loading suggestions

georgemaschke avatar Aug 26 '22 18:08 georgemaschke

Entering the account password instead of the user name results in the account being deleted. The message presented after this is confusing, however. Instead of confirming account deletion, it unhelpfully states:

REGISTER USERNAME The username is used to allow others to mention you in messages. Loading suggestions

I was able to successfully delete my account by entering my password in the dialog box that asks for my username as per this post.

Issue still exists, dialog should ask for password instead of username (or maybe it is supposed to take username and it is mistakenly taking password?)

micheal-earl avatar Oct 01 '22 02:10 micheal-earl

Yeah. I used password instead of the username and the account got deleted.

pranavreddyg avatar Dec 17 '22 15:12 pranavreddyg

Hi there, thanks for the contribution! 🚀 💯

You are right, this still persists in the latest release.

The modal should display to enter the password with the password field

image


Questions? Help needed? Feature Requests?

hugocostadev avatar Apr 06 '23 11:04 hugocostadev

@hugocostadev what is the ultimate changes that are required? Do you want the modal to ask for username or the password?

Simer13 avatar Apr 11 '23 17:04 Simer13

@hugocostadev what is the ultimate changes that are required?

Do you want the modal to ask for username or the password?

It should ask for password , and should be a password field instead of a text. The Backends already expects the password, it's just a matter to adjust the text and change the input type

hugocostadev avatar Apr 11 '23 20:04 hugocostadev