LoginSuccessCallback.php 500 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Integration\Controller\Adminhtml\Integration;
  8. class LoginSuccessCallback extends \Magento\Integration\Controller\Adminhtml\Integration
  9. {
  10. /**
  11. * Close window after callback has succeeded
  12. *
  13. * @return void
  14. */
  15. public function execute()
  16. {
  17. $this->getResponse()->setBody('<script>setTimeout(self.close.bind(this), 1000);</script>');
  18. }
  19. }