Commit graph

1474 commits

Author SHA1 Message Date
Reedy 6e108ad1e7 OATHManage: Add messages to signify 2FA auth is needed to continue action
Bug: T354538
Change-Id: I242dad188c94ec59c4a181f72cf9e3cd0d6f3529
(cherry picked from commit 5d5c9365c7)
2024-11-02 16:04:32 +00:00
jenkins-bot 00e73c4018 Merge "Add notification when user is running out of recovery codes" into REL1_42 2024-11-02 13:37:47 +00:00
Reedy 8b8b336613 Add notification when user is running out of recovery codes
Bug: T131788
Change-Id: Ic4294dc4ca8eb238998af3ec6b69a771f1b17c17
(cherry picked from commit 8eb5725494)
2024-11-02 11:39:32 +00:00
Gergő Tisza b1dcd2bc52 Add download link for recovery codes
Bug: T245027
Change-Id: I558fa2aaed90afee8488f8b68c71959e3c75331d
(cherry picked from commit b760e3f6e4)
2024-11-02 11:03:49 +00:00
libraryupgrader 2ad451d2fa build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I216a2b6cb1034ca66400e270148816caea90fdc5
2024-11-02 10:47:01 +00:00
Translation updater bot f41a187c17
Localisation updates from https://translatewiki.net.
Change-Id: Iafeb3331d3a9ddf8bacb436d6284f7767ca66ce0
2024-10-31 07:12:34 +01:00
Translation updater bot ee1ee65cad
Localisation updates from https://translatewiki.net.
Change-Id: I8f572eef40642977cd4f1030558d24c83ca18615
2024-10-24 09:20:01 +02:00
Translation updater bot 4f968fc085
Localisation updates from https://translatewiki.net.
Change-Id: I27e5afdb271d3367ce726b0df6053c738e1f7817
2024-10-17 08:29:47 +02:00
Translation updater bot d0ebcf3cce
Localisation updates from https://translatewiki.net.
Change-Id: Ibdee986aca7ac1f0387ab2aff7bd16b37e99c3b5
2024-10-03 08:12:01 +02:00
Translation updater bot b2fd3d7113
Localisation updates from https://translatewiki.net.
Change-Id: Ia35665ffeba11cccfb9e6826fda5966ba9bd2a1e
2024-09-26 07:58:38 +02:00
Translation updater bot b1084cdee3
Localisation updates from https://translatewiki.net.
Change-Id: Id93ac5ac7db8977d35cda45d46d0bb5e7a9906db
2024-09-19 08:02:22 +02:00
Translation updater bot d9fcd9758c
Localisation updates from https://translatewiki.net.
Change-Id: I1ebc2b46027ea5a806e837925bd1db281ed3e3b0
2024-09-05 08:06:22 +02:00
Translation updater bot 2ac44f1706
Localisation updates from https://translatewiki.net.
Change-Id: Ic4da24fde2686b9facc9315e03c84f1c32bb2e20
2024-08-29 08:11:50 +02:00
Translation updater bot c16481f998
Localisation updates from https://translatewiki.net.
Change-Id: Ieb14155246de922914878a0ef47b2263e0ecebe1
2024-08-22 08:34:59 +02:00
Translation updater bot 42d162ea66
Localisation updates from https://translatewiki.net.
Change-Id: I786b7f1e4ae18f7646556b0bab2324450ee23888
2024-08-15 08:02:07 +02:00
Translation updater bot b3f7e181cc
Localisation updates from https://translatewiki.net.
Change-Id: I44aea769d88945726dad22ab5a86060b7807e7a1
2024-08-08 08:09:35 +02:00
Translation updater bot 1ab8e05b42
Localisation updates from https://translatewiki.net.
Change-Id: Ifc8610faa6ce0e98e69e84e31dcbfafaf95a2e08
2024-08-01 07:55:31 +02:00
Translation updater bot 9306d3965c
Localisation updates from https://translatewiki.net.
Change-Id: I008d893fea378be9313401e7656375a7da3bec93
2024-07-25 08:26:23 +02:00
Translation updater bot eb1a13cb50
Localisation updates from https://translatewiki.net.
Change-Id: I5b1f92e3e50bd81bff1c8738a992cd5d38914528
2024-07-18 08:15:59 +02:00
Translation updater bot 1fada4665e
Localisation updates from https://translatewiki.net.
Change-Id: Ia943315b89ef54cfc984916c139699e9fb07a6c0
2024-07-11 08:05:55 +02:00
Translation updater bot 1274b1e978
Localisation updates from https://translatewiki.net.
Change-Id: If4d15b11e300c53d0e3c92c7cccd70c08b58b495
2024-07-04 08:34:53 +02:00
Translation updater bot edc581ab7d
Localisation updates from https://translatewiki.net.
Change-Id: If1390bc0648d17d56fb7cdc1f8f0138ff789c816
2024-06-27 08:44:58 +02:00
Translation updater bot 75467fb056
Localisation updates from https://translatewiki.net.
Change-Id: I60a9909022374d688cedcb736d713ee26a211aa3
2024-06-20 08:45:38 +02:00
Translation updater bot 0e26225a3f
Localisation updates from https://translatewiki.net.
Change-Id: Ie7a068122f84fdc0d7a2df7fa78089fe1a222f65
2024-06-13 08:39:21 +02:00
Translation updater bot cb8dbf17d2 Localisation updates from https://translatewiki.net.
Change-Id: I0584b7e2af533d59b8cb364322d02126b4baa7d8
2024-05-30 09:13:07 +02:00
Translation updater bot 6525cc91d2 Localisation updates from https://translatewiki.net.
Change-Id: I7d7ae725a5a88ebc248045fa0bb85f7be842d0b7
2024-05-23 08:41:11 +02:00
Translation updater bot b91525a190 Localisation updates from https://translatewiki.net.
Change-Id: Ib499bea746c56b43f61fbbbd3d94d4809178d18f
2024-05-16 08:31:36 +02:00
Majavah 8afe7f91c7 Merge "Fix disabling TOTP keys with scratch tokens" into REL1_42 2024-05-05 07:10:44 +00:00
Translation updater bot 282cfefd0f Localisation updates from https://translatewiki.net.
Change-Id: I61c3a445cb8214baa3e960013418088c732071d7
2024-05-02 08:11:44 +02:00
Taavi Väänänen 2832e97046 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
(cherry picked from commit 0dad2c7031)
2024-04-26 18:11:56 +00:00
Translation updater bot ff164518ab Localisation updates from https://translatewiki.net.
Change-Id: Ie9979565dfdc6a12c89b5cd59b5d60039025fe9a
2024-04-25 08:31:37 +02:00
Translation updater bot e49b337b88 Localisation updates from https://translatewiki.net.
Change-Id: Ib77fb7ebc3b2dac01632711df15faf8a3a550264
2024-04-18 08:11:16 +02:00
Translation updater bot 1f5a32add0 Localisation updates from https://translatewiki.net.
Change-Id: Ib761a8225cee381144506d3f46a0849ee97bb585
2024-04-03 09:24:07 +02:00
jenkins-bot 07ec66f30f Merge "Make the TOTP disable form only remove that single key" 2024-03-29 16:04:52 +00:00
Translation updater bot 47bcb47bd1 Localisation updates from https://translatewiki.net.
Change-Id: I7c4b16b848f6f54ac3e6c5677ef1e47353525ff4
2024-03-26 08:20:20 +01:00
Translation updater bot 13f90ae5c9 Localisation updates from https://translatewiki.net.
Change-Id: I79b47d07b1d06626dfe97be429798b6122a97d47
2024-03-22 08:45:08 +01:00
Translation updater bot 122761032a Localisation updates from https://translatewiki.net.
Change-Id: I3c7d20b4c827deb97a901fe18132a18392f287a9
2024-03-20 08:24:15 +01:00
Translation updater bot 61a4aec40b Localisation updates from https://translatewiki.net.
Change-Id: Iab16dc09b488cab65018af0fdbd076a628b5799e
2024-03-15 08:33:50 +01:00
Translation updater bot c26f57f670 Localisation updates from https://translatewiki.net.
Change-Id: Ia15863b41c36a8a7dcb76e3440e681987f9824a8
2024-03-14 09:03:30 +01:00
Umherirrender bc8a149b89 build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Ieff9fdac7b2235a38090d3ade14201961c845d8c
2024-03-11 20:43:28 +01:00
Translation updater bot f0c05a68c2 Localisation updates from https://translatewiki.net.
Change-Id: I0f494d899389227c29df1fd3d7162265e3a1ab0a
2024-03-11 08:27:36 +01:00
jenkins-bot 8cdbb2fd81 Merge "Make Key objects aware of their database IDs" 2024-03-07 18:41:57 +00:00
Translation updater bot a1f760bac3 Localisation updates from https://translatewiki.net.
Change-Id: Id84d142426e7987d93e925ceb9362295d9f43d8f
2024-03-07 08:49:00 +01:00
Translation updater bot 4712a6b19f Localisation updates from https://translatewiki.net.
Change-Id: I8cd46068efb14a271465ab47f6547423208ccc06
2024-03-05 08:28:00 +01:00
Taavi Väänänen c6a621d31c
Make the TOTP disable form only remove that single key
Bug: T242031
Change-Id: Iad07292cc96537e8ebd72da65e8f1e922cba3eca
2024-03-02 18:53:00 +02:00
Taavi Väänänen c09ec34213
Make Key objects aware of their database IDs
Bug: T242031
Depends-On: I1db9b04a42783b8b64ed69f1f950c794c8659209
Change-Id: I0d8d0a42ce627387949dbbbb32fc318088b3538e
2024-03-02 18:53:00 +02:00
Translation updater bot 18d7b47eb8 Localisation updates from https://translatewiki.net.
Change-Id: I77923a3d36dce004d1d3d38c001c4be4527f787e
2024-03-01 08:33:43 +01:00
Translation updater bot d1c092d4b9 Localisation updates from https://translatewiki.net.
Change-Id: Ifc24ebd2f00034f7d2baf9b9278c5e40b5c28f24
2024-02-28 08:14:41 +01:00
Translation updater bot 4ba333f051 Localisation updates from https://translatewiki.net.
Change-Id: Id4b9faef37f71eb38dd4e37ebdfd2baa97d94bac
2024-02-26 08:36:39 +01:00
Translation updater bot f85f5fa29e Localisation updates from https://translatewiki.net.
Change-Id: I904a48c25cf7b47662c48ce85955700b84a84824
2024-02-23 08:44:56 +01:00