original_string: public function reset($userId = null, $code = null)
      {
          try {
              if (post('postback')) {
                  return $this->reset_onSubmit();
              }
  
              if (!$userId || !$code) {
                  throw new ApplicationException(trans('backend::lang.account.reset_error'));
              }
          }
          catch (Exception $ex) {
              Flash::error($ex->getMessage());
          }
  
          $this->vars['code'] = $code;
          $this->vars['id'] = $userId;
      }
code: public function reset($userId = null, $code = null)
      {
          try {
              if (post('postback')) {
                  return $this->reset_onSubmit();
              }
  
              if (!$userId || !$code) {
                  throw new ApplicationException(trans('backend::lang.account.reset_error'));
              }
          }
          catch (Exception $ex) {
              Flash::error($ex->getMessage());
          }
  
          $this->vars['code'] = $code;
          $this->vars['id'] = $userId;
      }
code_tokens: public function reset ( $ userId = null , $ code = null ) { try { if ( post ( 'postback' ) ) { return $ this -> reset_onSubmit ( ) ; } if ( ! $ userId || ! $ code ) { throw new ApplicationException ( trans ( 'backend::lang.account.reset_error' ) ) ; } } catch ( Exception $ ex ) { Flash :: error ( $ ex -> getMessage ( ) ) ; } $ this -> vars [ 'code' ] = $ code ; $ this -> vars [ 'id' ] = $ userId ; }
docstring: Reset backend user password using verification code.
docstring_tokens: Reset backend user password using verification code .