Open svrnwnsch opened 2 years ago
It actually responds with error:
Same problem with resetting user password (but here we do see error message):
And we are not using 2FA/TOTP for Admin user but for end user.
@svrnwnsch How did you manage to get that "Reset TOTP" option? It doesn't even show up in our installation.
I also do not see this option.
FWIW I went into the mongo
console and did this:
use rocketchat;
db.users.update({ username: "foo" }, { $unset: { "services.totp": 1 } });
db.users.update(
{ username: "foo" },
{
$set: {
"services.resume.loginTokens": [],
},
}
);
Description:
As an administrator I want to reset the TOTP for an user. I changed all settings so that I see the following button in the UI: I click on it but the user still has there 2FA enabled (and therefor cannot login).
On the Dev tools I see the request
PUT https://server.url/api/v1/users.resetTOTP
fails with:Steps to reproduce:
Expected behavior:
I get a Prompt to input my 2FA token as an Administrator. And then the user 2FA is reseted.
Actual behavior:
Nothing happens
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: