Allow filtering Special:Log/oath by action

Configure "ActionFilteredLogs" in extension.json to allow filtering
the oath log by its two actions, verify ("checking" in the UI) and
disable-other.

== Test plan ==
* Enable 2FA on your administrator account, use Special:VerifyOATHForUser
  and Special:VerifyOATHForUser to generate two log entries.
* Visit Special:Log/oath and use the new action selector, testing each
  state to verify the correct set of logs are shown.
* Screenshots showing this testing are posted at T310487#7999991.

Bug: T310487
Change-Id: I10632c86689e330b21b44a096b098436ebe47e3e
This commit is contained in:
Kunal Mehta 2022-06-13 14:21:25 -04:00
parent 93df1c72a4
commit c896015a44
3 changed files with 12 additions and 0 deletions

View file

@ -192,5 +192,11 @@
"LogRestrictions": {
"oath": "oathauth-view-log"
},
"ActionFilteredLogs": {
"oath": {
"verify": [ "verify" ],
"disable-other": [ "disable-other" ]
}
},
"manifest_version": 2
}

View file

@ -58,6 +58,9 @@
"oath-log-header": "These events track changes to users' two-factor authentication status.",
"logentry-oath-disable-other": "$1 {{GENDER:$2|disabled}} the two-factor authentication of $3",
"logentry-oath-verify": "$1 {{GENDER:$2|checked}} if $3 had two-factor authentication enabled",
"log-action-filter-oath": "Type of two-factor authentication operation:",
"log-action-filter-oath-verify": "Checking if two-factor authentication is enabled",
"log-action-filter-oath-disable-other": "Disabling two-factor authentication for another user",
"oathauth-ui-no-module": "None enabled",
"oathauth-module-invalid": "The OATHAuth module that the user has registered is invalid.",
"oathauth-module-totp-label": "TOTP (one-time token)",

View file

@ -72,6 +72,9 @@
"oath-log-header": "The Special:Log description that appears on the Special:Log page when you filter logs on this specific log name",
"logentry-oath-disable-other": "{{Logentry|<kbd>Special:Log/oath</kbd>}}",
"logentry-oath-verify": "{{Logentry|<kbd>Special:Log/oath</kbd>}}",
"log-action-filter-oath": "{{doc-log-action-filter-type|oath}}\n{{related|Log-action-filter}}",
"log-action-filter-oath-verify": "{{doc-log-action-filter-action|oath|verify}}",
"log-action-filter-oath-disable-other": "{{doc-log-action-filter-action|oath|disable-other}}",
"oathauth-ui-no-module": "User preference value when no 2FA module is enabled",
"oathauth-module-invalid": "Error message when the OATHAuth module registered by user is invalid",
"oathauth-module-totp-label": "User preference value when the TOTP module is enabled",