Go to file
Kunal Mehta 329c3133d6 Send a notification when 2FA is disabled
Notify users when 2FA is disabled on their account in case something was
fishy about it. This notification is a "system" notification that will
be displayed in the web UI and sent over email. It can't be opted out of
as a preference.

The notification links to Special:Preferences, where users can see their
2FA status and re-enable it if they want. A secondary help link goes to
[[mw:Help:Two-factor authentication]], but can be overridden by
adjusting the "oathauth-notifications-disable-helplink" message. The
notification text is different based on whether the user disabled 2FA on
their own, or an admin used the special page or a maint script to do it.

On Wikimedia wikis, we'll use the WikimediaMessages extension to
customize the messages.

The Echo (Notifications) extension is not required, this will gracefully
do nothing if it's not enabled.

Bug: T210075
Bug: T210963
Change-Id: I99077ea082b8483cc4fd77573a0d00fa98201f15
2022-02-17 00:14:20 -08:00
.phan Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
i18n Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
maintenance Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
modules/totp build: Updating npm dependencies 2020-01-08 17:35:22 +00:00
sql Make SQLite compatible patches 2020-10-04 20:40:27 +00:00
src Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
tests/phpunit/Auth Refactor includes to src #2 2019-07-04 13:36:13 +00:00
.eslintignore build: Remove duplicate eslintignore info from Gruntfile.js 2019-07-15 22:08:27 -04:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 04:29:18 +00:00
.gitignore build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 09:59:52 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:06 -07:00
.phpcs.xml Avoid wfMessage in special page 2020-12-19 12:16:51 +01:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 10:12:13 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 14:49:59 +00:00
composer.json Merge "composer.json: Loosen christian-riesen/base32 requirement" 2022-01-05 17:52:01 +00:00
COPYING Add COPYING 2014-01-22 21:34:11 +00:00
extension.json Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
Gruntfile.js build: Updating dependencies 2021-01-30 06:33:24 +00:00
OATHAuth.alias.php Czech translation of new special pages 2020-11-25 23:48:08 +01:00
package-lock.json build: Updating ansi-regex to 5.0.1 2021-10-05 04:23:54 +00:00
package.json build: Updating stylelint-config-wikimedia to 0.11.1 2021-09-04 21:19:12 +00:00
ServiceWiring.php build: Updating dependencies 2021-05-12 03:37:53 +00:00