Jump to content

Want to fire custom function just after admin login.


Recommended Posts

Hello dev,
I am creating custom module on prestashop, I want to execute a function just after when the admin successfully logged in and dashboard page is loaded.
In other CMS I see there is hook available for admin dashboard.
In prestashop I tried with "displayAdminAfterHeader" hook but it is not working.

Please help.

Link to comment
Share on other sites

Hi.

https://devdocs.prestashop-project.org/1.7/modules/concepts/hooks/list-of-hooks/

More info and functions in ./controllers/admin/AdminLoginController.php

* actionAdminLoginControllerSetMedia

* actionAdminLoginControllerBefore

* actionAdminLoginControllerLoginBefore

* actionAdminLoginControllerLoginAfter

* actionAdminLoginControllerForgotBefore

* actionAdminLoginControllerForgotAfter

* actionAdminLoginControllerResetBefore

* actionAdminLoginControllerResetAfter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...