Page MenuHomePhabricator

Prevent members of a 2FA-enforced global group from disabling 2FA
Closed, ResolvedPublic

Description

If a local group requires 2FA from its members, we currently prevent them from disabling 2FA (T414952). We'd like to have the same behavior for global groups as well.

Acceptance criteria

  • Special:AccountSecurity recognizes global groups which require 2FA.
  • If member of 2FA-required global groups has more than one 2FA method, they are allowed to remove any of them.
  • If member of 2FA-required global groups has exactly one 2FA method, they cannot remove it.
  • If member of 2FA-required global groups is prevented from disabling their last 2FA method, they are presented with a message instructing them where they could go and ask for having the relevant global groups removed.

Event Timeline

Change #1271690 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/OATHAuth@master] Prevent members of 2FA-enforced global groups from disabling 2FA

https://gerrit.wikimedia.org/r/1271690

Change #1271690 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Prevent members of 2FA-enforced global groups from disabling 2FA

https://gerrit.wikimedia.org/r/1271690