Commit graph

1390 commits

Author SHA1 Message Date
Umherirrender 4b44d7f9ba Use HookHandlers for Echo hook
Bug: T270971
Depends-On: Iffa2b409502b4269c9746e0304feb4aaee37a86e
Change-Id: I61dd10200c70575690c5c4db3978d6e85a6cfe5d
2023-08-16 00:14:23 +02:00
Taavi Väänänen 167d3670cb
OAuthUserRepository: Ensure we don't end up with duplicate rows
To do the migration we need to ensure that a single user has rows in
either the old oathauth_users table, or the new oauthauth_devices table,
but not in both.

Also add a missing startAtomic/endAtomic.

Bug: T242031
Change-Id: Ib0d42370b7206ff031873182c3fd957449656de8
2023-08-15 16:29:38 +08:00
Translation updater bot 2cb0c48655 Localisation updates from https://translatewiki.net.
Change-Id: I9e5a03f8a465c3bb4afe341d113c58b7046ea2ab
2023-08-14 09:18:09 +02:00
Translation updater bot 85fe5fa88a Localisation updates from https://translatewiki.net.
Change-Id: I4108f69cf7e8fc24cd21be19a309260203b074ca
2023-08-09 09:15:29 +02:00
gerritbot c23d76f21a Migrate ILB::getConnectionRef() calls to ILB::getConnection()
Deprecated since 1.39 (I6e7544763bd)

Bug: T343277
Change-Id: Iac5f0ed8646f9c1cfd10fc02ad39566f97e94a14
2023-08-03 22:19:29 +00:00
Translation updater bot 8670cf280c Localisation updates from https://translatewiki.net.
Change-Id: Idcab426e2893f9cb2af8bca956dd6e5ded320657
2023-08-01 08:37:02 +02:00
Translation updater bot 57cceeb36c Localisation updates from https://translatewiki.net.
Change-Id: I1374ec9c55dbad1b3a6a12a98c53f502d81687c4
2023-07-31 08:59:40 +02:00
Translation updater bot eb7b473642 Localisation updates from https://translatewiki.net.
Change-Id: I73c5619448cc740e5dc1d837ac99a18b1e75b1db
2023-07-28 09:20:41 +02:00
Translation updater bot f0b3b577be Localisation updates from https://translatewiki.net.
Change-Id: I2c294ebaccfa3710537305b972cc5906d4adb026
2023-07-24 09:38:58 +02:00
Translation updater bot d2f854d7b0 Localisation updates from https://translatewiki.net.
Change-Id: Ic7157f10159cab9980fd58b8f7fc882b0e2f025a
2023-07-18 09:49:42 +02:00
Translation updater bot bf88dd9db1 Localisation updates from https://translatewiki.net.
Change-Id: I1c106b06f421434226102166319b3181f5e64c08
2023-07-10 09:38:35 +02:00
Translation updater bot fd2542fc8b Localisation updates from https://translatewiki.net.
Change-Id: Id6766475d0552681fbaad3250424b992b6580b70
2023-06-26 12:40:09 +02:00
Umherirrender ec4dce349d api: Remove old apihelp i18n description messages
No longer used since 1.33

Automatically removed message keys with "doc-apihelp-description" in qqq

Bug: T340253
Change-Id: Ifbda21ab76928a2ae3f6b357d7e3edc6df122c12
2023-06-24 00:02:51 +02:00
Translation updater bot 033ffeb86e Localisation updates from https://translatewiki.net.
Change-Id: I14fae9dfeb25debb25b71ffee5fccb4dcd677987
2023-06-12 13:07:52 +02:00
Translation updater bot ef80aab7dd Localisation updates from https://translatewiki.net.
Change-Id: I2a36a2c0ac24f0dfe1dff758aac353f27afdfca5
2023-06-05 08:41:10 +02:00
Translation updater bot bd6b93a1eb Localisation updates from https://translatewiki.net.
Change-Id: I039fc03dea9a1c13d9b126e1d40078bd7274a12f
2023-06-02 09:24:23 +02:00
libraryupgrader 4732e2d4da build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: Ia7f8d3a4d16e6a94bc1df4e59e3cccce32b97cdd
2023-06-01 22:05:37 +00:00
jenkins-bot a729d7e2f3 Merge "Replace usages of deprecated UserGroupMembership::getLink()" 2023-05-22 14:29:56 +00:00
Translation updater bot 794ccdea55 Localisation updates from https://translatewiki.net.
Change-Id: I39d78a30e8b1dd4d455570e49f0dfd6d5066f4dc
2023-05-22 08:46:05 +02:00
Daimona Eaytoy db15682ecd Replace usages of deprecated UserGroupMembership::getLink()
Bug: T183174
Change-Id: Iee5ee954b7d40e1d8be23b605182fb02183faa26
2023-05-21 17:32:27 +00:00
Umherirrender 6089abf1cb tests: Use static provider in TOTPAuthenticationRequestTest
Shows up a deprecation message

Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
Change-Id: Ibd0184ab7f30898e9415400051413b3b7f9dde53
2023-05-19 22:27:12 +02:00
gerritbot 4b32885285 Update moved class RawMessage
See T321882. Moved in I195cf4c67bd514

Bug: T321681
Change-Id: If34bda0a8d0f882d51fea1fcf4257bb5de09948a
2023-05-19 10:31:07 +00:00
Translation updater bot 24de243925 Localisation updates from https://translatewiki.net.
Change-Id: I294306d2db22e322628eaa000f563cbdf4744245
2023-05-15 08:33:23 +02:00
Translation updater bot 66dc5cc81a Localisation updates from https://translatewiki.net.
Change-Id: I21d1fbccddb55b46823feb61fb2ae4082f5dc724
2023-05-08 10:32:49 +02:00
Translation updater bot 99b9da5f1a Localisation updates from https://translatewiki.net.
Change-Id: I0cfabf4e3dad8f64e9368a8d366e5ad05f725345
2023-05-05 10:40:17 +02:00
libraryupgrader 8ff7c73945 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I65fa81b1f4af2db9161db3c3494dfb37490a7bd9
2023-05-05 07:39:13 +00:00
libraryupgrader 2a81704aaa build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: I7cd4915177cca87e1abcf034de8878626ae845d9
2023-04-29 07:57:59 +00:00
Translation updater bot 88701d8a64 Localisation updates from https://translatewiki.net.
Change-Id: I6f95ac9778053c9137fc4f6d94150cfc5007605b
2023-04-21 09:00:26 +02:00
Translation updater bot a53213d463 Localisation updates from https://translatewiki.net.
Change-Id: I67a05a00d5cc02d7a30b768b0c5dffdd579e65ca
2023-04-17 09:14:56 +02:00
Translation updater bot 4d4e873e11 Localisation updates from https://translatewiki.net.
Change-Id: I6e6c25d2238c019d3c5e5b8928465be81f855431
2023-04-10 09:22:20 +02:00
Translation updater bot 6cea8d7f80 Localisation updates from https://translatewiki.net.
Change-Id: I0d055217f40eaef09263cf501f69ca4cb3ccfeae
2023-04-03 09:18:36 +02:00
Translation updater bot af2e8bd3d3 Localisation updates from https://translatewiki.net.
Change-Id: I4cf5be43d999e3dec9e12c110620d101118bc325
2023-03-31 09:58:31 +02:00
MarcoAurelio da8f0445f8 Fix typo: s/to log/the log/
See e.g. `abusefilter-log` or `checkuser-log` for a similar wording.

Change-Id: Ibdc11631df71bab6f1a73d743189919e5b7e89ba
2023-03-28 18:00:52 +00:00
jenkins-bot 65691d1334 Merge "List special pages under appropriate sections on Special:SpecialPages" 2023-03-28 11:05:40 +00:00
Bartosz Dziewoński c64ba2134e List special pages under appropriate sections on Special:SpecialPages
Bug: T333242
Depends-On: Ieba1631ca3c0562b784aa07d2b26c418448e70a1
Change-Id: Ie5ab34bcd93892ef8c7319eeafd5e692766b69a0
2023-03-27 21:51:07 +00:00
Translation updater bot 3a4aee7118 Localisation updates from https://translatewiki.net.
Change-Id: If999cbb2e7da9437398b9576ed472f96e1a4541f
2023-03-27 08:41:32 +02:00
jenkins-bot 4cbdd9db0b Merge "Database-level support for multiple auth devices" 2023-03-22 15:13:17 +00:00
Translation updater bot b142214343 Localisation updates from https://translatewiki.net.
Change-Id: I235f858fb833d1ee97d3071e546108cd3f7ea2df
2023-03-20 09:01:54 +01:00
libraryupgrader 693a579b4b build: Updating npm dependencies
* eslint-config-wikimedia: 0.20.0 → 0.24.0
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.1 → 0.14.0

Change-Id: I9220c7a49f224f59682766303a363ebe1e53630e
2023-03-16 03:33:53 +00:00
Translation updater bot 0b539e13f1 Localisation updates from https://translatewiki.net.
Change-Id: I056c9b56476c474a927893b2d78b3908cfd4b4e1
2023-03-13 08:39:23 +01:00
libraryupgrader e707386dfa build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I241e944e04477350d31408012f84f991839f3d2d
2023-03-12 07:07:24 +00:00
Translation updater bot 8181eb7f3e Localisation updates from https://translatewiki.net.
Change-Id: I5b697f2286674565aca8ba723b722026b22c0d19
2023-03-10 08:49:17 +01:00
Translation updater bot 5055f7a80c Localisation updates from https://translatewiki.net.
Change-Id: Ia0848843fdf26744bc02fc9f1c5f0968ebf224d2
2023-03-09 09:05:44 +01:00
Translation updater bot 39629f810f Localisation updates from https://translatewiki.net.
Change-Id: I23821564f53bf5052a3919aa1d1969427b173854
2023-03-07 08:45:55 +01:00
Taavi Väänänen 6ef3d2418a
Database-level support for multiple auth devices
This adds new database tables to support storing multiple authentication
factors for a single user. The current approach taken is to use a single
database row per 2fa method and key. The current module/key abstraction
will have to be updated to support having multiple module types for a
single user (for example for having a separate module for recovery
codes), but this patch does not address that and instead keeps the
existing limitations, however the needed updates for that should be
doable with this database schema.

I've decided to add a new table instead of modifying the existing
oathauth_users table. This is mainly because adding an auto_increment
column to the existing table would be difficult, but also allows us to
update the table definition to follow MW conventions (namely the column
name prefixes). I've also used the opportunity to normalize the device
types onto a separate table.

The migration stage variable is set to SCHEMA_COMPAT_NEW so that
third-party wikis can use update.php normally and don't have to adjust
anything. This means that it needs to be manually set to _OLD on
wmf-config before merging this patch.

Since we're already working with the database schema, this add a new,
currently unused column for the creation data, so that T242847 will not
require a new schema change.

Bug: T242031
Bug: T242847
Change-Id: I6aa69c089340434737b55201b80398708a70c355
2023-02-24 15:33:00 +02:00
Reedy 547da1a0c1 TOTPKey: Add better fallback attempts to find a useable cache
Bug: T330086
Change-Id: Iee5e2d95ef365c9f1767491d3a7008b7bd0eabdb
2023-02-21 22:22:37 +00:00
jenkins-bot de2adc72c5 Merge "TOTPKey: simplify verify() method" 2023-02-21 02:53:51 +00:00
jenkins-bot 48c506bd9d Merge "TOTPKey: Move logging/rate limit handling to the callers" 2023-02-21 02:52:52 +00:00
Translation updater bot 3f263b595d Localisation updates from https://translatewiki.net.
Change-Id: I2932cae9424febaafecf4851e63820d66bf59118
2023-02-16 08:47:02 +01:00
Translation updater bot a3fedc5127 Localisation updates from https://translatewiki.net.
Change-Id: Ic757bf658a3a72da6ae14451485bb29d8595f232
2023-02-02 08:47:10 +01:00