Disabling the 2FA (either by the user or disableOATHAuthForUser.php) should trigger a flow and email notification to the user that his 2FA has been disabled, so that, in case there was anything fishy with this action, the legitimate account owner can notice.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Tgr | T189537 2FA reset should log the user out | |||
Open | None | T125653 Create new types of notifications | |||
Resolved | Release | dduvall | T300199 1.38.0-wmf.23 deployment blockers | ||
Resolved | Legoktm | T210075 Send notification when 2FA is disabled | |||
Resolved | Legoktm | T210963 Send an email when 2FA is disabled |
Event Timeline
Seems easy enough. Dunno if this text is too scary, but there's not that much space, anything longer gets truncated. It currently links to Special:Preferences, but we could add a secondary link to a help page if someone writes one.
Change 763190 had a related patch set uploaded (by Legoktm; author: Legoktm):
[mediawiki/extensions/OATHAuth@master] Send a notification when 2FA is disabled
Do you plan to send a notification on self-service removals only? Or also when someone with super-high permissions uses https://meta.wikimedia.org/wiki/special:DisableOATHForUser? If the latter (which I feel is a good idea anyway), the "If you didn't do it" part will make no sense. FTR, the special page is how a lot of the forced 2FA removals are done by T&S (the remainder is the maintenance script, usually used at private wikis).
My patch sends notification for all 2FA removals, whether it's self-initiated, the special page or maint script...and I think that's the way it should be done.
If the latter (which I feel is a good idea anyway), the "If you didn't do it" part will make no sense.
Good point. Maybe for the non-self-initiated notification, "If you did not request this, you should contact an administrator." with a WikimediaMessages override to say "...contact WMF Trust & Safety."? And then the option to add a help link, which again, WikimediaMessages can point to Meta.
Tiny thing but this likely needs to be "Wikimedia Foundation", not "WMF". Otherwise I think I'm cool with that, since the Meta page for the team has contact info on it.
I tried :( but the problem is that Echo notifications have a length limit, and if it exceeds that it'll get truncated.
IIRC some other languages are typically longer and will likely be even worse.
Change 763190 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@master] Send a notification when 2FA is disabled
Change 763299 had a related patch set uploaded (by Reedy; author: Legoktm):
[mediawiki/extensions/OATHAuth@REL1_37] Send a notification when 2FA is disabled
Change 763300 had a related patch set uploaded (by Reedy; author: Legoktm):
[mediawiki/extensions/OATHAuth@REL1_36] Send a notification when 2FA is disabled
Change 763301 had a related patch set uploaded (by Reedy; author: Legoktm):
[mediawiki/extensions/OATHAuth@REL1_35] Send a notification when 2FA is disabled
Change 763299 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_37] Send a notification when 2FA is disabled
Change 763300 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_36] Send a notification when 2FA is disabled
Change 763301 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_35] Send a notification when 2FA is disabled
Change 763699 had a related patch set uploaded (by Legoktm; author: Legoktm):
[mediawiki/extensions/WikimediaMessages@master] Add overrides for 2FA disabled notification
Change 763699 merged by jenkins-bot:
[mediawiki/extensions/WikimediaMessages@master] Add overrides for 2FA disabled notification
Change 764400 had a related patch set uploaded (by Bartosz Dziewoński; author: Legoktm):
[mediawiki/extensions/WikimediaMessages@wmf/1.38.0-wmf.23] Add overrides for 2FA disabled notification
Change 764400 merged by jenkins-bot:
[mediawiki/extensions/WikimediaMessages@wmf/1.38.0-wmf.23] Add overrides for 2FA disabled notification
It seems the message oathauth-notifications-disable-primary newly introduced in rEOAT329c3133d6eed8b8bc0b9c7a3cd6bfeebb05c915 is not defined, see https://www.mediawiki.org/wiki/Topic:Wsnjwprwq8rzsoo2.
Similarly, oathauth-notifications-enable-primary is needed from T301987: Notify user when 2FA has been enabled/rEOAT851656bbdf74: Revert "OATHUserRepository: Stop handling legacy single-key"
Change 776327 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/extensions/OATHAuth@master] Add missing oathauth-notifications-(dis|en)able-primary messages
Hello folks, I just went thru the flow to disable 2FA on wikitech.wikimedia.org, and got an email similar to @Seb35's with a i18n template instead of the actual button text:
So looks like we closed this task without a resolution to this issue? Happy to open a new ticket if necessary, LMK.
Change 776327 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@master] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975368 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/extensions/OATHAuth@REL1_41] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975369 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/extensions/OATHAuth@REL1_40] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975370 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/extensions/OATHAuth@REL1_39] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975370 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_39] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975368 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_41] Add missing oathauth-notifications-(dis|en)able-primary messages
Change 975369 merged by jenkins-bot:
[mediawiki/extensions/OATHAuth@REL1_40] Add missing oathauth-notifications-(dis|en)able-primary messages