mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
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:
parent
18a0c0174b
commit
eabcc820a5
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue