original_string: public function reset2faAction()
      {
          $user = $this->getSelectedUser();
          $user->clearTwoFactorKey();
          $this->addMessage(
                  sprintf($this->_('Two factor key cleared for user %s'),
                          $user->getLoginName()),
                  'success');
          $router = \Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
          $router->gotoRoute(['controller'=>'staff', 'action'=>'show'], null, false);
      }
code: public function reset2faAction()
      {
          $user = $this->getSelectedUser();
          $user->clearTwoFactorKey();
          $this->addMessage(
                  sprintf($this->_('Two factor key cleared for user %s'),
                          $user->getLoginName()),
                  'success');
          $router = \Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
          $router->gotoRoute(['controller'=>'staff', 'action'=>'show'], null, false);
      }
code_tokens: public function reset2faAction ( ) { $ user = $ this -> getSelectedUser ( ) ; $ user -> clearTwoFactorKey ( ) ; $ this -> addMessage ( sprintf ( $ this -> _ ( 'Two factor key cleared for user %s' ) , $ user -> getLoginName ( ) ) , 'success' ) ; $ router = \ Zend_Controller_Action_HelperBroker :: getStaticHelper ( 'redirector' ) ; $ router -> gotoRoute ( [ 'controller' => 'staff' , 'action' => 'show' ] , null , false ) ; }
docstring: reset two factor authentication
docstring_tokens: reset two factor authentication