Page MenuHomePhabricator

Allow users to customise where they get 2FA related notifications
Open, Needs TriagePublic

Description

I don't see any of the 2FA options on Special:Preferences#mw-prefsection-echo, but I do see "Login from an unfamiliar device" (for example) from MediaWiki-extensions-LoginNotify

Something relating to OATHAuth not setting anything for $wgNotifyTypeAvailabilityByCategory? And/or reusing 'category' => 'system'?

It's unclear where/how users currently get notified of these (just on Web? Email too?), which is even more relevant with the case of T131788: Users should be notified when only two recovery codes are left, T353962: Add new notifications for additional 2FA being enabled/disabled...

Event Timeline

system notifications are not configurable. If you want these notifications to be configurable, you need to create a new category. Not sure I'd want to allow that though.

$wgNotifyTypeAvailabilityByCategory is only needed if you want to prevent some type of notification (email or web) for a certain category entirely. (Or if you want to enable push notifications, which are a bit of a hack.)

I'm not sure we want to allow disabling email alerts on account security information changes?

Screenshot 2024-01-14 at 23.15.22.png (1×479 px, 86 KB)

It would seem, based on a few of the examples here (web, edits to my user talk page, for example), we can have some always on/not so customisable.

Of course, they don't need to be email confirmed to enable 2FA anyway...