TheDJ has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/349517 )
Change subject: OathAuth: rename failedtovalidateoauth
......................................................................
OathAuth: rename failedtovalidateoauth
Rename this key from failedtovalidateoauth to failedtovalidateoath
as it has nothing to do with OAuth
Bug: T151536
Change-Id: Ib34ef3dbdef8eda515748140960ef240e4990044
---
M i18n/en.json
M i18n/qqq.json
M special/SpecialOATHDisable.php
M special/SpecialOATHEnable.php
4 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OATHAuth
refs/changes/17/349517/1
diff --git a/i18n/en.json b/i18n/en.json
index 93cbe5a..b7db997 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -17,7 +17,7 @@
"oathauth-login": "Login with two-factor authentication",
"oathauth-displayoathinfo": "two-factor authentication options",
"oathauth-validatedoath": "Validated two-factor credentials. Two-factor
authentication will now be enforced.",
- "oathauth-failedtovalidateoauth": "Failed to validate two-factor
credentials",
+ "oathauth-failedtovalidateoath": "Failed to validate two-factor
credentials",
"oathauth-disabledoath": "Disabled two-factor authentication.",
"oathauth-prefs-label": "Two-factor authentication:",
"oathauth-abortlogin-throttled": "Too many verification attempts!
Please try again later.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index a5d73e1..ab6a26f 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -24,7 +24,7 @@
"oathauth-login": "Page title on Special:OATH while loggin in with
OATH.",
"oathauth-displayoathinfo": "Page title on Special:OATH when no
parameters are passed.\n\nSee
[https://en.wikipedia.org/wiki/Multi-factor_authentication Two-factor
authentication]",
"oathauth-validatedoath": "Plain text found on Special:OATH after a
token has been validated.\n\nSee
[https://en.wikipedia.org/wiki/Two_factor_authentication two factor
authentication]",
- "oathauth-failedtovalidateoauth": "Plain text found on Special:OATH
when validation of a token has failed.\n\nSee
[https://en.wikipedia.org/wiki/Two_factor_authentication two factor
authentication]",
+ "oathauth-failedtovalidateoath": "Plain text found on Special:OATH when
validation of a token has failed.\n\nSee
[https://en.wikipedia.org/wiki/Two_factor_authentication two factor
authentication]",
"oathauth-disabledoath": "Plain text found on Special:OATH when
disabling OATH has been successful.\n\nSee
[https://en.wikipedia.org/wiki/Two_factor_authentication two factor
authentication]",
"oathauth-prefs-label": "Plain text label seen on
Special:Preferences\n\nSee
[https://en.wikipedia.org/wiki/Two_factor_authentication two factor
authentication]\n{{Identical|Two factor authentication}}",
"oathauth-abortlogin-throttled": "Error message shown on login and
password change pages when authentication is aborted due to rate limit
violations.\n\nSee [https://en.wikipedia.org/wiki/Two_factor_authentication two
factor authentication]",
diff --git a/special/SpecialOATHDisable.php b/special/SpecialOATHDisable.php
index d177867..3782016 100644
--- a/special/SpecialOATHDisable.php
+++ b/special/SpecialOATHDisable.php
@@ -104,7 +104,7 @@
}
if ( !$this->OATHUser->getKey()->verifyToken(
$formData['token'], $this->OATHUser ) ) {
- return [ 'oathauth-failedtovalidateoauth' ];
+ return [ 'oathauth-failedtovalidateoath' ];
}
$this->OATHUser->setKey( null );
diff --git a/special/SpecialOATHEnable.php b/special/SpecialOATHEnable.php
index 7318d6a..44d887d 100644
--- a/special/SpecialOATHEnable.php
+++ b/special/SpecialOATHEnable.php
@@ -158,7 +158,7 @@
$key = $this->getRequest()->getSessionData( 'oathauth_key' );
if ( !$key->verifyToken( $formData['token'], $this->OATHUser )
) {
- return [ 'oathauth-failedtovalidateoauth' ];
+ return [ 'oathauth-failedtovalidateoath' ];
}
$this->getRequest()->setSessionData( 'oathauth_key', null );
--
To view, visit https://gerrit.wikimedia.org/r/349517
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib34ef3dbdef8eda515748140960ef240e4990044
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits