Commit graph

1486 commits

Author SHA1 Message Date
Reedy 239ff36a06 Add module types to log entries
Change-Id: If765f666496492da44efa282011c2605923be3a2
2022-02-18 00:30:32 +00:00
jenkins-bot 361d2829ba Merge "Add some greppable usage of messages" 2022-02-17 21:20:21 +00:00
Reedy 68ca72d7b9 Add some greppable usage of messages
Change-Id: I5ca72a33ecacb15a8a01f6cda0cdb7cdb628eab8
Follows-Up: Idbac3940b36ce21a0b40044482514a28c5fbd45f
Follows-Up: Ic173ebb7e39d22e40fea23c2b906d246adef1e05
2022-02-17 20:44:51 +00:00
Reedy 4a3db51953 DisablePresentationModel: Remove duplicate getExtraParam call
Follows-Up: I99077ea082b8483cc4fd77573a0d00fa98201f15
Change-Id: I3e6d5aad83e005f7ea2b80551b5eb9249bf4b947
2022-02-17 18:16:17 +00: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
Lucas Werkmeister 203a0112c0 Pass context into HTMLForm
Creating a HTMLForm (or OOUIHTMLForm) without passing in a context is
deprecated now.

Bug: T301866
Change-Id: I35eb85f5089bcef04624e5f72fd1a4389be87de9
Depends-On: Ic65c8934ab33c6d1ca0356011923f8933c5072ca
2022-02-16 13:05:35 +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
jenkins-bot ff5aa95d92 Merge "composer.json: Loosen christian-riesen/base32 requirement" 2022-01-05 17:52:01 +00: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
libraryupgrader 76a50e2d77 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: Ia3f9db90ccc4529513e6ef129add054d4657d806
2021-10-24 08:53:27 +00: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
Reedy cec607450f composer.json: Loosen christian-riesen/base32 requirement
Change-Id: I695ac1a8edabcd0a0d09bf6c359c00e540086898
2021-10-13 09:43:52 +00: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
libraryupgrader 2f3aadcc6d build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Change-Id: I64fbfdfa2f5aacab7c3076ef1902d44be30b42ff
2021-10-05 04:23:54 +00:00
Reedy 72fb91180f switchTOTPScratchTokensToArray: Don't run a db update unless the row is changed
Change-Id: Ie08db6253ddc3b05a49a7e99fa9637fcacc5f3a7
2021-09-23 18:33:41 +01: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
libraryupgrader 37bab0ccb9 build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: Ibc5ba5833ca9a72ac72e257e32d3519be42c23a2
2021-09-09 11:12:00 +00:00
Translation updater bot bc9ce1ad56 Localisation updates from https://translatewiki.net.
Change-Id: I7a4ad0deaf4908be6e661bff23673ce6124a2d8d
2021-09-06 08:21:04 +02:00
Martin Urbanec 73a3848557 showqrcode-related RL modules should also target mobile devices
Otherwise, the QR code will not be displayed when using
the mobile interface.

Bug: T214986
Change-Id: I08c3f66d836f5fc854d5c7ae2ca580aa896f3f38
2021-09-05 23:07:35 +02:00
libraryupgrader bf5fb1b48d build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: I299e1b7c4c0e8b698aedf14e8f90cd90d5d5a832
2021-09-04 21:19:12 +00:00
MacFan4000 249d1f3daf set autocomplete=‘one-time-code’ on forms
This allows iOS/iPadOS/macOS to suggest filling codes from sms/the built in totp authenticator (in upcoming versions).

Bug: T289086
Change-Id: I555b05fad4806a37a95afcbc63e143efc424f9d3
2021-09-03 22:45:32 +00:00
Reedy 5143076231 Stop trying to return the result of a void return value
Change-Id: I27d9f2bc55d12764b526d226293ff8743a6cb668
2021-09-03 01:27:29 +01: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
TChin e95a74035d Replace deprecated CentralIdLookup::factory
Bug: T288836
Change-Id: Iac0492405951d9c6bb21151f2b70f1989bdec027
2021-08-13 12:57:52 -04:00
libraryupgrader 27575de215 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I7f2bb65e6acb9517fdc96fd42b9e4fc4737eb5b1
2021-08-12 05:48:06 +00:00
Translation updater bot c20216ea8f Localisation updates from https://translatewiki.net.
Change-Id: I1b45a6c01d9adb91376664210619edf2e49b2f88
2021-08-09 08:24:42 +02:00
libraryupgrader 852e0fb201 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.1 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I40e9581dfdc8a0e7865c3059287ea9f6b1e26a0a
2021-07-23 05:14:49 +00: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
jenkins-bot 005dc5a364 Merge "Remove $wgOATHAuthSecret" 2021-07-01 00:22:02 +00:00
Reedy ec3c499138 Remove $wgOATHAuthSecret
It's unused

Change-Id: Ia62672c36a8241e0f25c69444b3db693aaea9db7
2021-07-01 00:48:17 +01: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