OathAuth: rename failedtovalidateoauth

Rename this key from failedtovalidateoauth to failedtovalidateoath
as it has nothing to do with OAuth

Bug: T151536
Change-Id: Ib34ef3dbdef8eda515748140960ef240e4990044
This commit is contained in:
Derk-Jan Hartman 2017-04-21 20:59:26 +02:00
parent 18a0c0174b
commit eabcc820a5
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@
"oathauth-disable": "Disable 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-step1": "Step 1: Download a two-factor authentication program",

View file

@ -23,7 +23,7 @@
"oathauth-disable": "Page title on Special:OATH while disabling OATH.\n\nSee [https://en.wikipedia.org/wiki/Two_factor_authentication two factor authentication]",
"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-step1": "Label for step 1 on Special:OATH form",

View file

@ -104,7 +104,7 @@ class SpecialOATHDisable extends FormSpecialPage {
}
if ( !$this->OATHUser->getKey()->verifyToken( $formData['token'], $this->OATHUser ) ) {
return [ 'oathauth-failedtovalidateoauth' ];
return [ 'oathauth-failedtovalidateoath' ];
}
$this->OATHUser->setKey( null );

View file

@ -158,7 +158,7 @@ class SpecialOATHEnable extends FormSpecialPage {
$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 );