RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.73k stars 10.69k forks source link

Disable totp via email does not work #33722

Open dazoot opened 1 month ago

dazoot commented 1 month ago

Description:

I am trying to disable TOTP via email from the Profile -> Security page and it does not work.

Steps to reproduce:

  1. I click My account -> Profile -> Security
  2. I click Disable Two-factor authentication via Email.
  3. I get a flash message that Two-factor authentication disabled but the feature is not disabled.

Expected behavior:

TOTP via Email to be disabled.

Actual behavior:

TOTP via Email remains enabled.

Server Setup Information:

Client Setup Information

dazoot commented 1 month ago

I was able to disable email2fa by running this query in mongo DB:

db.users.update({"username": "catalin"}, {"$unset":{"services.email2fa": 1}});
reetp commented 1 week ago

Can you test this on v7.x please?

If it is still an issue I will refer it to the team.