Commit graph

1541 commits

Author SHA1 Message Date
Translation updater bot b904cffa53
Localisation updates from https://translatewiki.net.
Change-Id: Idaa061c8bfecb1c279b82e760a03ccbdfdc6b715
2024-07-03 09:27:02 +02:00
Translation updater bot fa44c26cd8
Localisation updates from https://translatewiki.net.
Change-Id: Ia7564030306c8abcdecdfa23a64b2423942a326f
2024-07-01 09:25:57 +02:00
Wandji69 fb55b1eabe Tests: Replace "db" with getDb method
Bug: T316841
Change-Id: Ied9f8d3a4d51a5f9eff5561a25e79a9b35ac2704
2024-06-27 17:59:48 +01:00
jenkins-bot 33fd2ec210 Merge "LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action" 2024-06-26 09:26:16 +00:00
Translation updater bot 0d46be2152
Localisation updates from https://translatewiki.net.
Change-Id: I83236ba508dc7f9bc81a5a45e20c7f71fbd3a3f0
2024-06-26 09:21:57 +02:00
libraryupgrader c6d5da60a1 build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: Ic5c03783a3ece84bf44352727115d6367d61e7ba
2024-06-21 06:02:40 +00:00
Umherirrender 2e491bfde1 Use ::class for class name resolution of EchoUserLocator
Also use namespaced class and AttributeManager::ATTR_LOCATORS
as seen in other extensions (like LoginNotify)

Change-Id: I183043ed91c20479b9594209341bf227507bb083
2024-06-19 21:46:01 +02:00
Bartosz Dziewoński e30916d5c7 LoadExtensionSchemaUpdates: Remove unused path from 'runMaintenance' action
MediaWiki has never used this path for running the maintenance
scripts, only the class name provided in the other parameter.
Providing the parameter is no longer needed in MediaWiki 1.43.

Bug: T367918
Change-Id: I13b85b2f14bea802229a624ad0b8b2166845d1d1
2024-06-19 19:58:47 +02:00
Translation updater bot dfbd255b80
Localisation updates from https://translatewiki.net.
Change-Id: I09e40d6f3b7de3208edaadbf0d71ea53b4190832
2024-06-17 09:32:03 +02:00
Translation updater bot 0714b6c483 Localisation updates from https://translatewiki.net.
Change-Id: I158470f57476b7c3e24a237bc8a0bd111cc78d4e
2024-06-10 09:55:51 +02:00
Umherirrender 56e062512d Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: Ib56dd5248012dfdc3490aa82bb00f66f20ae1c84
2024-06-09 18:58:24 +02:00
libraryupgrader 8a386e5672 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: Id661debfb559e69dbeab1398601f9543be8c9531
2024-06-05 20:41:30 +00:00
Translation updater bot 71d3fc2e24 Localisation updates from https://translatewiki.net.
Change-Id: I5485874d591bb9a555533d1e665219c9e58b48b8
2024-06-03 09:32:23 +02:00
Umherirrender 20765f5b64 Add caller when running query builder
Change-Id: I5df6eb6453938b599494e899964b3540efdba1f9
2024-05-30 23:50:50 +02:00
jenkins-bot 4f203a25bc Merge "add a check if a module is available for enabling" 2024-05-29 19:09:00 +00:00
Translation updater bot 846d1f6604 Localisation updates from https://translatewiki.net.
Change-Id: I3ffb1e9019d8fd512ed1efec5286d6de5416a34c
2024-05-29 09:32:06 +02:00
Translation updater bot fc27b6d2ff Localisation updates from https://translatewiki.net.
Change-Id: I73cd755cfc812e9132b1231c8ee8e17caad4cf51
2024-05-28 09:30:58 +02:00
Ariel T. Glenn 76c63c112e add a check if a module is available for enabling
Bug: T354701
Change-Id: I73f7928f9f3c751ef58d8eb614ad1a408c629970
2024-05-23 13:23:24 +00:00
Translation updater bot afc9c8c3c6 Localisation updates from https://translatewiki.net.
Change-Id: I5aef1cfd690582865b50d80ce6edbd0152f976dd
2024-05-22 09:20:48 +02:00
jenkins-bot 76d8715f1c Merge "Fix: Use ObjectCacheFactory instead of deprecated ObjectCache Methods" 2024-05-21 16:04:21 +00:00
Translation updater bot d8e524bcd2 Localisation updates from https://translatewiki.net.
Change-Id: I07e5b981343faf2f19435c8decc8cc08bbaf472c
2024-05-21 09:28:38 +02:00
Wandji69 46a4453f8d Fix: Use ObjectCacheFactory instead of deprecated ObjectCache Methods
Bug: T363770
Change-Id: Ie7a237c100560933ce7b6b846ddee147bd858405
2024-05-20 23:09:01 +01:00
Translation updater bot 7cc8841f50 Localisation updates from https://translatewiki.net.
Change-Id: Idffd92cbfd0951464fe2b974ee445ff999e74cd2
2024-05-20 09:25:47 +02:00
Umherirrender e8e4429a22 build: Run stylelint for less file
Follow-Up: I558fa2aaed90afee8488f8b68c71959e3c75331d
Change-Id: I3a53a5cad92bb74a2a92385e40c939d4682315c0
2024-05-18 19:47:53 +00:00
libraryupgrader 27f63dbd6e build: Updating grunt-banana-checker to 0.13.0
Change-Id: I275dfe5643ef0ca933718d2e0c6cb406b9c2e982
2024-05-18 19:13:55 +00:00
Translation updater bot a5b490fc15 Localisation updates from https://translatewiki.net.
Change-Id: I58374926dd5aef8ce5b37945b9f949eded96504c
2024-05-16 09:27:06 +02:00
Translation updater bot e38f034f0a Localisation updates from https://translatewiki.net.
Change-Id: I5846aecddc49dcc916ced3f0447a6f74cee8c1f8
2024-05-15 09:21:57 +02:00
Translation updater bot 5bc2fc6660 Localisation updates from https://translatewiki.net.
Change-Id: I51bf584211edb24203409d9b293f25602c6556d9
2024-05-13 09:27:39 +02:00
libraryupgrader 28e6e25eed build: Updating grunt-banana-checker to 0.12.0
Change-Id: I24542414560839b6395de99831808d39e8b8533d
2024-05-11 02:20:24 +00:00
Translation updater bot 88e435f9c1 Localisation updates from https://translatewiki.net.
Change-Id: I0037597dfa3a9f497f5f26f5ef94c55195c5e422
2024-05-10 09:29:38 +02:00
Translation updater bot 89e675c393 Localisation updates from https://translatewiki.net.
Change-Id: I11e7efb3a3941f92552345153444c5983e59d01f
2024-05-09 09:39:47 +02:00
jenkins-bot 6f925ddc55 Merge "Add download link for recovery codes" 2024-05-08 12:29:05 +00:00
Gergő Tisza b760e3f6e4
Add download link for recovery codes
Bug: T245027
Change-Id: I558fa2aaed90afee8488f8b68c71959e3c75331d
2024-05-08 13:42:29 +02:00
jenkins-bot 13d9ef4cbb Merge "Auth: Inject the module instead of relying on getModule()" 2024-05-07 15:10:37 +00:00
libraryupgrader 15cd2870c2 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I8d41337ce858ecdf8f1b05f3156655ee207a44fe
2024-05-05 23:24:01 +00:00
Taavi Väänänen e1beb74c13
Auth: Inject the module instead of relying on getModule()
We want to remove getModule() to support multiple different modules for
a single user.

Bug: T242031
Change-Id: Ic4967494494293aad6520ff27b11577d79f06ce4
2024-05-05 14:28:14 +03:00
Piotr Miazga 75a91cddb2
Allow persisting user without keys/modules
Previously the `UserRepository::persist()` always expected
keys/modules to be present when called.
This patch provides support to persist disabled user.

This solves an issue introduced in
Ibc3df9d6c8beceeff4e11d024acc42cf45e42b28

Change-Id: I92aedf6e09d636b12c61fa15cf4c64055e3a549f
2024-05-04 14:02:02 +03:00
jenkins-bot ed34066e59 Merge "OATHUser: Remove clearAllKeys()" 2024-05-04 08:11:47 +00:00
jenkins-bot 3559c5d7cf Merge "OATHUser: Drop getFirstKey()" 2024-05-04 08:11:44 +00:00
Translation updater bot ee887cc044 Localisation updates from https://translatewiki.net.
Change-Id: I1ee021c7ac2e2da5efff98a70a56e374d769511a
2024-04-29 09:23:49 +02:00
Reedy 44c952e01a OATHUserRepository: Start storing enrollment timestamp
Bug: T242847
Change-Id: I922cdced9d9c73140088f062a23daba6910c8272
2024-04-28 18:43:25 +01:00
Taavi Väänänen 156ee1bfcb
OATHUser: Remove clearAllKeys()
Unused. This was essentially disable() but with more handguns attached,
as it did not clear $module.

Depends-On: Ibc3df9d6c8beceeff4e11d024acc42cf45e42b28
Change-Id: Ic5b50dcba429e3a88561f1c081fb53788c474a0d
2024-04-26 18:11:16 +03:00
Taavi Väänänen 06d3bdafc7
OATHUser: Drop getFirstKey()
Bug: T242031
Depends-On: Id57dd0f37a9f90a492770f6a1de3d8a2f96df944
Depends-On: Iad31b9795eca700b15f6233749846f9f8ce5e89b
Change-Id: I7bbf5f54e97a563940fedaf67904730fac918af4
2024-04-26 18:11:15 +03:00
Taavi Väänänen 0dad2c7031
Fix disabling TOTP keys with scratch tokens
The current implementation of OATHUserRepository::persist() causes every
key to get a new ID when it's saved. This, combined with ::removeKey()
which compares keys by ID, means that using recovery codes to disable
TOTP is broken since TOTPKey calls persist() to mark the code as saved
just before the key is deleted.

In this patch I've chosen to add a new ::updateKey() method instead of
fixing ::persist(). This is more in line with the other new APIs in
OATHUserRepository (namely ::createKey() and ::removeKey()), and is
something I've been planning to do eventually - this bug just made that
a bit more urgent. ::persist() should be dropped once WebAuthn has been
updated too.

Tests are also updated - OATHUserRepositoryTest now updates the key
before deleting it and there's a new TOTPDisableFormTest to test the
entire disabling process.

Bug: T363548
Change-Id: I86ddc8e5bfc9cf74c587ffdff523f559c5a3c08c
2024-04-26 16:29:25 +03:00
Translation updater bot 3a29a04fb4 Localisation updates from https://translatewiki.net.
Change-Id: I87a27b9e255ce1ebe697721e54098c271eb0b7a6
2024-04-26 09:48:44 +02:00
Translation updater bot b607a4ca12 Localisation updates from https://translatewiki.net.
Change-Id: I00ab23e5fa7008721b23a7e3d1e285b12be57494
2024-04-22 09:29:03 +02:00
libraryupgrader 234b047c30 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I6a09f8ed73b8ccbf2c7b34d3a9a9dbb4ccbd85f5
2024-04-20 00:07:56 +00:00
Translation updater bot 17c5a48664 Localisation updates from https://translatewiki.net.
Change-Id: Idf7aee7d377095f1f7d09a5db256372495af813a
2024-04-16 09:28:41 +02:00
Translation updater bot 7ab667c848 Localisation updates from https://translatewiki.net.
Change-Id: Id55c523d2759ccab58ac5289eb8406a02e181a3d
2024-04-15 09:28:29 +02:00
Translation updater bot 1f5a32add0 Localisation updates from https://translatewiki.net.
Change-Id: Ib761a8225cee381144506d3f46a0849ee97bb585
2024-04-03 09:24:07 +02:00