15 $this->
getOutput()->addWikiMsg(
'oathauth-disabledoath' );
22 'label-message' =>
'oathauth-entertoken',
27 'autocomplete' =>
false,
28 'spellcheck' =>
false,
40 if ( $this->oathUser->getUser()->pingLimiter(
'badoath', 0 ) ) {
43 'OATHAuth {user} rate limited while disabling 2FA from {clientip}', [
44 'user' => $this->
getUser()->getName(),
48 return [
'oathauth-throttled', Message::durationParam( 60 ) ];
51 $module = $this->oathUser->getModule();
53 if ( !
$module->
verify( $this->oathUser, [
'token' => $formData[
'token'] ] ) ) {
55 'OATHAuth {user} failed to provide a correct token while disabling 2FA from {clientip}', [
56 'user' => $this->
getUser()->getName(),
60 return [
'oathauth-failedtovalidateoath' ];
64 $this->oathUser->setKeys();
65 $this->oathRepo->remove( $this->oathUser, $this->
getRequest()->getIP() );