events.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * MageSpecialist
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Open Software License (OSL 3.0)
  9. * that is bundled with this package in the file LICENSE.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * http://opensource.org/licenses/osl-3.0.php
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to info@magespecialist.it so we can send you a copy immediately.
  15. *
  16. * @category MSP
  17. * @package MSP_TwoFactorAuth
  18. * @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
  19. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. */
  21. -->
  22. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
  24. <event name="controller_action_predispatch">
  25. <observer name="msp_twofactorauth" instance="MSP\TwoFactorAuth\Observer\ControllerActionPredispatch"/>
  26. </event>
  27. <event name="admin_user_save_after">
  28. <observer name="msp_twofactorauth" instance="MSP\TwoFactorAuth\Observer\AdminUserSaveAfter"/>
  29. </event>
  30. <event name="admin_user_load_after">
  31. <observer name="msp_twofactorauth" instance="MSP\TwoFactorAuth\Observer\AdminUserLoadAfter"/>
  32. </event>
  33. <event name="backend_auth_user_login_success">
  34. <observer name="msp_twofactorauth" instance="MSP\TwoFactorAuth\Observer\BackendAuthUserLoginSuccess"/>
  35. </event>
  36. </config>