40 if ( $this->oathUser->getUser()->pingLimiter(
'badoath', 0 ) ) {
42 LoggerFactory::getInstance(
'authentication' )->info(
43 'OATHAuth {user} rate limited while disabling 2FA from {clientip}', [
44 'user' => $this->
getUser()->getName(),
51 $module = $this->oathUser->getModule();
53 if ( !
$module->
verify( $this->oathUser, [
'token' => $formData[
'token'] ] ) ) {
54 LoggerFactory::getInstance(
'authentication' )->info(
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() );