Commit graph

3495 commits

Author SHA1 Message Date
jenkins-bot d538bb701b Merge "captcha(-old).py: Support Pillow 10" 2024-01-05 04:47:08 +00:00
Translation updater bot 745c9d5158 Localisation updates from https://translatewiki.net.
Change-Id: I949b7ba42d217bb50b12e6c9321eee5d3a549d0d
2024-01-04 09:55:26 +01:00
Translation updater bot cabab2b499 Localisation updates from https://translatewiki.net.
Change-Id: Iabe9e0cbc23e38f14f132080dcf0e8d49dce803e
2024-01-02 10:15:50 +01:00
Reedy fbf8d90063 captcha(-old).py: Support Pillow 10
getsize() function was removed in version 10

Bug: T354099
Change-Id: I019a5a89de4340d73a938c907c0a6f5cc22a659c
2024-01-02 02:56:54 +00:00
Translation updater bot 2b15ffbb94 Localisation updates from https://translatewiki.net.
Change-Id: Ie5f89ec59cd5d7ded9d841df5893fdabe8657ac4
2023-12-29 19:21:47 +01:00
Translation updater bot 49acf503d7 Localisation updates from https://translatewiki.net.
Change-Id: Id76a2f7d8560c9ffc29aab1fa4cc32b3ed474487
2023-12-28 14:49:39 +01:00
Translation updater bot bace2bb2cf Localisation updates from https://translatewiki.net.
Change-Id: Iba2a398d49ed799a43172bfde3fc8faa89f718f3
2023-12-22 17:45:38 +01:00
jenkins-bot 99d4eed4c9 Merge "Store: Use the MicroStash store only and drop dead code" 2023-12-19 15:09:11 +00:00
Derick Alangi 6f2fbd1d00 Store: Use the MicroStash store only and drop dead code
In this patch, we can now make use of MicroStash only and
drop dead code.

At this point, we're sure that there are no captchas in the
main stash, freeing up this memory for other requests to use.

Bug: T336004
Change-Id: I6aa69636f2f94e3bd18afc66eac37146d00771d1
2023-12-19 14:45:50 +00:00
Translation updater bot 6761bd3c1d Localisation updates from https://translatewiki.net.
Change-Id: Iba77a826899b65f40adcdca891321f930a3a581c
2023-12-18 18:16:48 +01:00
Translation updater bot 055770fe76 Localisation updates from https://translatewiki.net.
Change-Id: Ie2f05ac3a729c19752d58540e126c3e8677fdf37
2023-12-14 08:27:17 +01:00
Bartosz Dziewoński 2c6fe24521
Move login attempt counting to a separate class
This has nothing to do with CAPTCHA generation, and the only thing it
needs from the SimpleCaptcha class is checking whether a CAPTCHA on
bad login is enabled at all.

Also improve comments in CaptchaPreAuthenticationProvider. I found the
session flag business really difficult to understand.

Change-Id: I8200531718aaa11effcb07539204e1a05ed432e0
2023-12-13 15:18:39 -08:00
Translation updater bot 8110ce02f8 Localisation updates from https://translatewiki.net.
Change-Id: I1c666855fe5e3e395242203981012599f743ea94
2023-12-13 08:40:39 +01:00
Translation updater bot a6a470d209 Localisation updates from https://translatewiki.net.
Change-Id: I8db4596aa54db65b9eeb5072c6319d5b956adfe7
2023-12-11 10:42:58 +01:00
Umherirrender 92bc1f3d2f Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements done manually

Change-Id: Id44f211320e56bc83e4c8f243369dc4eb562cf37
2023-12-11 00:07:55 +01:00
Translation updater bot c0e4d03c0f Localisation updates from https://translatewiki.net.
Change-Id: If4bda909769f47a797b82aa01dfe1c7d92862eb4
2023-12-08 14:45:16 +01:00
Translation updater bot 356d7520f7 Localisation updates from https://translatewiki.net.
Change-Id: Id87161e17c55522696fe82fffe393f5f45c3539f
2023-12-07 10:01:16 +01:00
Translation updater bot ebaf280898 Localisation updates from https://translatewiki.net.
Change-Id: I7c103a70402b01bfb43276746d6954c862ac688c
2023-12-06 09:58:55 +01:00
Translation updater bot cd383c0dd8 Localisation updates from https://translatewiki.net.
Change-Id: I65c387b2c3f9d6d4d984c246166b776e2ed74317
2023-12-05 09:14:25 +01:00
Translation updater bot 074f524d15 Localisation updates from https://translatewiki.net.
Change-Id: Ia07e2ec3e654bc2639b1a46abc49ccedccdcaef1
2023-12-04 09:03:47 +01:00
Translation updater bot 608f6fdfa8 Localisation updates from https://translatewiki.net.
Change-Id: Id75ca9f77777accddcf1758c703ebe1b6b51a1b3
2023-11-30 09:37:45 +01:00
Derick Alangi bb201b86e4
Store: Enable ConfirmEdit to use MicroStash for captcha storage
ConfirmEdit uses MainStash as the backend to write its captchas. We
are migrating this extension to use the MicroStash store instead which
is more suitable.

This patch will store the captcha in MicroStash, read it from there
or fallback to MainStash if lookup was not successful. The code will
then clear both stores once after processing.

Migration plan
==============

step .1: Write to microstash store only, read from it or
         fallback to mainstash store. Then delete from
         both backends.

step .2: Read from microstash store only, delete from the
         microstash store, and remove dead code afterward.

Bug: T336004
Change-Id: Ie7c50a6efe7a0aefc97a712b2ad961e7837cc4cf
2023-11-29 11:35:45 +01:00
Translation updater bot 2e24b873a8 Localisation updates from https://translatewiki.net.
Change-Id: I586d41a899a43fc9081f8cdbfafb6baa201c3ebd
2023-11-29 08:30:45 +01:00
Ammarpad 0ae3137ead Fix dynamic property usage
Status now provides declared $statusData property for holding
arbitrary data that can be used instead.

Bug: T326479
Depends-On: Ibe3f1f8b81bcfcb18551d3ca4cda464e4bdbcbce
Change-Id: I1342a8a8ca64b4040ed2b2d101d4574aedd888af
2023-11-28 14:10:40 +01:00
Translation updater bot de91250432 Localisation updates from https://translatewiki.net.
Change-Id: Id4def644018191df3eb413f6abb03ad0441107ff
2023-11-27 08:32:02 +01:00
Translation updater bot 0f6f85f7a7 Localisation updates from https://translatewiki.net.
Change-Id: I6c41dbbe6f68360e0cea0319e874de4bdd530539
2023-11-23 11:56:03 +01:00
Translation updater bot 977a1116f9 Localisation updates from https://translatewiki.net.
Change-Id: I3b92fd4d856849f334750e55edc796ed0c2a1a0f
2023-11-20 08:51:09 +01:00
Translation updater bot 9977e87163 Localisation updates from https://translatewiki.net.
Change-Id: Ib55813defd6e064a8e6a10c697ff7811871f2b4c
2023-11-17 08:52:22 +01:00
Translation updater bot 5170e9e0d6 Localisation updates from https://translatewiki.net.
Change-Id: I9ac44d1b45ca9b7a65fb91c8abf8c997e22fa75c
2023-11-16 09:09:05 +01:00
Translation updater bot ceee49508b Localisation updates from https://translatewiki.net.
Change-Id: Id9821140fd133a6de1ed6d67704634da401a8e8a
2023-11-08 13:07:26 +01:00
Translation updater bot ec7245f9cd Localisation updates from https://translatewiki.net.
Change-Id: I8a5c7fba8a41f9cdfbfccde2db7aae808b8726a6
2023-11-07 09:07:35 +01:00
Translation updater bot 6c0a549b3b Localisation updates from https://translatewiki.net.
Change-Id: Idf82c2fd64858c01b9b1f20390feff16dbdfad15
2023-11-06 08:55:58 +01:00
Translation updater bot a368c40e8d Localisation updates from https://translatewiki.net.
Change-Id: I1753944666ad7cdba9b80d98f4ebf26ddf0f5d10
2023-10-30 17:59:00 +01:00
Translation updater bot 8d1e6b7730 Localisation updates from https://translatewiki.net.
Change-Id: I828f19a75f826e803223ac8cf6fc2eb7d5358867
2023-10-27 09:19:48 +02:00
Translation updater bot 1216b948f7 Localisation updates from https://translatewiki.net.
Change-Id: I8eb4dee4984de41c393fb7cb856f563a49afaff2
2023-10-24 09:36:55 +02:00
Translation updater bot 6b65692bce Localisation updates from https://translatewiki.net.
Change-Id: I9f45eb37b61b5f574fae7e4487460cb1ddd61daf
2023-10-23 09:50:27 +02:00
Translation updater bot 22288ed942 Localisation updates from https://translatewiki.net.
Change-Id: Ic345702a02c9d411af93f4f4b1f957f3c6b4dfc5
2023-10-19 08:41:32 +02:00
Translation updater bot 184f0ffda1 Localisation updates from https://translatewiki.net.
Change-Id: Ide63d3b2e22b70d67bf9b2512c0dfef05035b73d
2023-10-13 08:55:42 +02:00
Translation updater bot 0791b95568 Localisation updates from https://translatewiki.net.
Change-Id: Ic969aa9c167a217a8b2a783a1edea62fc1d7270e
2023-10-09 08:55:43 +02:00
Translation updater bot 94b055d19d Localisation updates from https://translatewiki.net.
Change-Id: Id99c45003c3d58c6345dc998a155e8795aadbb1e
2023-10-04 09:07:54 +02:00
Translation updater bot d18e313248 Localisation updates from https://translatewiki.net.
Change-Id: I64b71fc9903bf2703fb47e9423f1bac9425a10bf
2023-10-03 09:32:24 +02:00
Translation updater bot 01429df697 Localisation updates from https://translatewiki.net.
Change-Id: I2de0deb4acd38261aa240162ac18d00bc8b45354
2023-10-02 10:57:05 +02:00
Translation updater bot eb4261e552 Localisation updates from https://translatewiki.net.
Change-Id: I3d971a5c0062cac07dc4e395bab96d1486b611cb
2023-09-27 09:19:52 +02:00
Translation updater bot 8182f72b72 Localisation updates from https://translatewiki.net.
Change-Id: Ic63b9a58f63df53b2268619a86bb70136b6da079
2023-09-25 08:46:03 +02:00
Translation updater bot ae8973dbe8 Localisation updates from https://translatewiki.net.
Change-Id: I5fd594676339b661ae3228864e19525135c83c45
2023-09-21 10:15:30 +02:00
Timo Tijhof 2a47e936aa build: Simplify banana config with require() and for-of
* `require()` is more direct and likely faster than a synchronous
  file read into user land and then sync JSON.parse (as grunt.file
  does) than Node natively reading and parsing a file in one go.

  Also benefits being less Grunt-specific and theoretically some minor
  benefit to IDE and static analysis.

* Inline loop as for-of without the forEach function calls.

Change-Id: I06c8f8729b2f4ba2c574c7aaeaa2ae56513b4595
2023-09-20 09:28:46 +01:00
James D. Forrester 2f9beac0fa build: Switch eslint to ES6 mode, and make pass
Change-Id: Ic29ad198519a7455909b8ee32fa891c7881e4bb5
2023-09-20 09:27:51 +01:00
James D. Forrester 003fd5778f build: Update all linters to latest as of September 2023
eslint-config-wikimedia     0.25.0  →  0.25.1
 grunt-eslint                24.0.1  →  24.3.0
 grunt-stylelint             0.18.0  →  0.19.0
 stylelint-config-wikimedia  0.15.0  →  0.16.1

Change-Id: If484bdb4a5c842e7c362ffececba666bd4eb9ee5
2023-09-20 09:22:51 +01:00
Translation updater bot 613bfd1b45 Localisation updates from https://translatewiki.net.
Change-Id: Ibd111d5ec1d7d4b21ba301e66cb639e7003c03df
2023-09-20 08:54:45 +02:00
James D. Forrester df052e9027 build: Use conf.MessageDirs for banana path config
This repo is a little tricky, as it's made up of multiple sub-
extensions, each using relative paths, but at least this way it
is clear that adding additional i18n paths to a manifest will
also add it to the linting set-up.

Change-Id: I7bc4f0cd5d2b431fe47a4d3bee2ca69a06aeea6d
2023-09-19 09:59:36 +01:00