Commit graph

600 commits

Author SHA1 Message Date
Translation updater bot 44831d0ecf Localisation updates from https://translatewiki.net.
Change-Id: Icbe945f1481cdc10980b68f04fad9bceb0b287f6
2022-02-18 08:40:54 +01:00
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
jenkins-bot 4cc5cbe4ad Merge "Require OATHAuth for membership in specified user groups" 2022-02-17 07:41:53 +00:00
Translation updater bot 094051f490 Localisation updates from https://translatewiki.net.
Change-Id: If253afd0e21b27a2dfe9791ff9d5402d9976fb70
2022-02-17 08:12:05 +01:00
Translation updater bot 7ead5b8888 Localisation updates from https://translatewiki.net.
Change-Id: I8fbf5c821276fec4fc92cc712e693c2044dd7000
2022-02-16 08:13:20 +01:00
Kunal Mehta 498dcfeb80 Require OATHAuth for membership in specified user groups
Users in groups listed in $wgOATHRequiredForGroups (default none) must
have two-factor authentication enabled otherwise their membership in
those groups will be disabled. This is done using the
UserEffectiveGroups hook, which allows dynamically adding or removing
user groups.

If a user doesn't have 2FA enabled, it will appear to them as if they
aren't a member of the group at all. Special:Preferences will show which
groups are disabled. In the future it would be good to have a hook into
PermissionsError to show this as well. The UserGetRights hook is used to
ensure the user still has the "oathauth-enable" user right in case it
was only granted to them as part of the user group they are disabled
from.

On the outside, Special:ListUsers will still show the user as a member
of the group. The API list=users&prop=groups|groupmemberships will show
inconsistent informaiton, groups will remove disabled groups while
groupmemberships will not.

This functionality was somewhat already available with
$wgOATHExclusiveRights, except that implementation has flaws outlined at
T150562#6078263 and haven't been resolved in I69af6a58e4 for over a year
now. If this works out, it's expected that will be deprecated/removed.

Bug: T150562
Change-Id: I07ebddafc6f2233ccec216fa8ac6e996553499fb
2022-02-14 00:47:20 -08:00
Translation updater bot 15a1792b2a Localisation updates from https://translatewiki.net.
Change-Id: Ic453ed1c38f95f5232c807f90f21bf623bb6f45a
2022-02-10 08:41:55 +01:00
Translation updater bot fbcd002117 Localisation updates from https://translatewiki.net.
Change-Id: I13cb0819beb71c260fa0703fee1b61fad418aa8e
2022-01-20 09:17:58 +01:00
Translation updater bot 84aa02e195 Localisation updates from https://translatewiki.net.
Change-Id: I4e1be32f996b081885187c69c58d79f33e3dafeb
2022-01-17 08:12:39 +01:00
Translation updater bot 30e033c395 Localisation updates from https://translatewiki.net.
Change-Id: I7bb4a11f6222b40069d07dc4a843528557f045e0
2021-12-20 08:21:32 +01:00
Translation updater bot 8e9d997e70 Localisation updates from https://translatewiki.net.
Change-Id: Ifb91bb3e575ad0c567cf42eeaf65cb5a2373501a
2021-12-10 08:24:34 +01:00
Translation updater bot d0dfa7b94c Localisation updates from https://translatewiki.net.
Change-Id: Icf5105d7b07fabca9cd1e5bab6121dccded41082
2021-11-17 08:30:47 +01:00
Translation updater bot 6c5bf86159 Localisation updates from https://translatewiki.net.
Change-Id: I6229db7b5102077a059a8145d94ff87d332f2622
2021-11-15 08:12:14 +01:00
Translation updater bot a3a3fd576d Localisation updates from https://translatewiki.net.
Change-Id: I0dc5dc74f81d3e12605be34ac61e22e76f1dd3bf
2021-11-11 10:02:45 +01:00
Translation updater bot ef1dd8bd85 Localisation updates from https://translatewiki.net.
Change-Id: Ic96eaad7cdc569d0c97cbdfe3b9435d495586911
2021-11-09 07:29:23 +01:00
Translation updater bot 71b39bdfde Localisation updates from https://translatewiki.net.
Change-Id: Icd0af2ba65542ccfe155c017ffac7115ee8f489a
2021-11-02 08:07:16 +01:00
Translation updater bot 5abfbaecd3 Localisation updates from https://translatewiki.net.
Change-Id: I868242bb94998d454a95ed682e3845a29a03546f
2021-10-20 08:37:29 +02:00
Translation updater bot 42b60bfa28 Localisation updates from https://translatewiki.net.
Change-Id: I76532831b67d9308c9bd7a34bc625d0a8d811c03
2021-10-18 15:20:52 +02:00
Translation updater bot c2a8d7fe39 Localisation updates from https://translatewiki.net.
Change-Id: I7fe9ada8766c49aa8464ca5db20b4295cb71f15a
2021-10-08 09:21:23 +02:00
Translation updater bot 8dfde7e2c0 Localisation updates from https://translatewiki.net.
Change-Id: I81bed5678292a28c6f069fd171795cc51167673b
2021-10-06 09:28:43 +02:00
Translation updater bot dabe381a83 Localisation updates from https://translatewiki.net.
Change-Id: I1de7ec41e623ad1379cffeea5cd43ba7fd8672bb
2021-09-20 08:19:22 +02:00
Translation updater bot 7854f045f5 Localisation updates from https://translatewiki.net.
Change-Id: I91d3d5efb789906c71b44699065f109ba2311d64
2021-09-16 08:11:47 +02:00
Translation updater bot bc9ce1ad56 Localisation updates from https://translatewiki.net.
Change-Id: I7a4ad0deaf4908be6e661bff23673ce6124a2d8d
2021-09-06 08:21:04 +02:00
Translation updater bot c832445968 Localisation updates from https://translatewiki.net.
Change-Id: I67ac391180dcb6a918e59f266543b851f790de8e
2021-09-02 08:26:34 +02:00
Translation updater bot 85ec729219 Localisation updates from https://translatewiki.net.
Change-Id: Id0747bb76560b0dbcb3052e364c4319716732a90
2021-08-23 09:04:12 +02:00
Translation updater bot c20216ea8f Localisation updates from https://translatewiki.net.
Change-Id: I1b45a6c01d9adb91376664210619edf2e49b2f88
2021-08-09 08:24:42 +02:00
Translation updater bot 219817fc22 Localisation updates from https://translatewiki.net.
Change-Id: I4c103ec4d9ce750aec29527a19e3bf3732168d1a
2021-07-20 08:20:47 +02:00
Translation updater bot 0096cd7b57 Localisation updates from https://translatewiki.net.
Change-Id: I6e846fbe7675c756077e2fdd170356a361492d18
2021-07-15 08:12:26 +02:00
Translation updater bot 8aa06fb546 Localisation updates from https://translatewiki.net.
Change-Id: I16d6b7bdef5ed0e046e74e58f709307cf5379fc8
2021-07-13 08:11:54 +02:00
Translation updater bot ac2dd16780 Localisation updates from https://translatewiki.net.
Change-Id: I50e1330c79e8f8e3929883e450d812e0df1e9b86
2021-06-14 08:37:54 +02:00
Translation updater bot 3e5a974e51 Localisation updates from https://translatewiki.net.
Change-Id: I8048105b877bc0a8b8b792ac37fdb840c852b75a
2021-06-04 08:37:00 +02:00
Translation updater bot fd6469ec3b Localisation updates from https://translatewiki.net.
Change-Id: Ifb687fac039ca7c96fb151bc64a4497820daccf8
2021-05-31 08:32:06 +02:00
Translation updater bot b569d0aebc Localisation updates from https://translatewiki.net.
Change-Id: I6f6020da13d56ff1c63e3a0e1b5b54c18844857b
2021-05-28 09:05:38 +02:00
Translation updater bot 8116a70e8a Localisation updates from https://translatewiki.net.
Change-Id: Ib06ba3eded8c7444443a17911ca932f83e22a023
2021-05-27 12:05:50 +02:00
Translation updater bot 3dd337b1d5 Localisation updates from https://translatewiki.net.
Change-Id: I7f1b469ae788cb5221510912cb83970eecd501e4
2021-05-26 09:05:08 +02:00
Translation updater bot 982ed29762 Localisation updates from https://translatewiki.net.
Change-Id: I3ba1a0f1f5ce2f94bfdd8b8811a11fd1d457478d
2021-05-25 08:53:16 +02:00
Translation updater bot 1e0e25283b Localisation updates from https://translatewiki.net.
Change-Id: I33f4b65fe2da84e51cbd5fd38b653e24fffd917b
2021-05-20 09:11:02 +02:00
Translation updater bot 4b9eaa64fc Localisation updates from https://translatewiki.net.
Change-Id: Ic56eedd5b931abad4b3a2d466d74643e0922f158
2021-05-17 08:42:57 +02:00
Translation updater bot 8d95d7a227 Localisation updates from https://translatewiki.net.
Change-Id: I8bd35961052a81e15b2ddcc3bb37b9caa6dd1604
2021-05-14 08:44:58 +02:00
Translation updater bot 88feccc5ea Localisation updates from https://translatewiki.net.
Change-Id: I76cde514b41f1fd0c1835298057cf84a3b168d4e
2021-05-12 09:22:35 +02:00
Translation updater bot dfdc112727 Localisation updates from https://translatewiki.net.
Change-Id: Ide6957afec87d0c1c047702b1bc5a5b69d3ef2a0
2021-05-11 09:07:28 +02:00
Translation updater bot 111c3801b0 Localisation updates from https://translatewiki.net.
Change-Id: Iac1860d60984f7b9b04f39e0493626a413b1b033
2021-05-10 08:52:53 +02:00
Translation updater bot 7b3434b534 Localisation updates from https://translatewiki.net.
Change-Id: I3fd848ab6a0cfdce071a55c32dab00592d8f5359
2021-05-07 08:42:35 +02:00
Translation updater bot 4764d3b5c3 Localisation updates from https://translatewiki.net.
Change-Id: I0ffd1c85d0ebe9868fd9fdf6034401d09c902948
2021-05-05 08:38:47 +02:00
Translation updater bot 5a096bb8d6 Localisation updates from https://translatewiki.net.
Change-Id: Idb4f700eb198e493b7b9d9f13b003310a743a290
2021-05-04 08:52:35 +02:00
Translation updater bot 9e83c737bb Localisation updates from https://translatewiki.net.
Change-Id: I92741cf00e3822116e6cca3deba69d82e488593b
2021-04-23 08:37:05 +02:00
Translation updater bot c12560388e Localisation updates from https://translatewiki.net.
Change-Id: I8b5050687d6ff49be85a0eaf6e1fe3df870107ec
2021-04-16 09:50:44 +02:00
Translation updater bot 9bb97a9a43 Localisation updates from https://translatewiki.net.
Change-Id: I79c7f6f21e3fafa11ceb0555c60e87738f5b795c
2021-03-30 08:33:22 +02:00
Translation updater bot 04522fa6f9 Localisation updates from https://translatewiki.net.
Change-Id: I1ce20e1cb0e8a89830b32284d233485c05629d2d
2021-03-29 08:36:41 +02:00
Translation updater bot 58b26f743a Localisation updates from https://translatewiki.net.
Change-Id: I7e425648d4b3fccfe83af72efd859ea30a1a79aa
2021-03-01 08:52:49 +01:00