Not long ago, my team and I had to change our local Magento development environment to something new and experimental. We changed our local setup so right now we run Magento with docker. So far it’s still experimental and we change the Docker setup quite often. This means that we destroy and recreate the local environment quite often. One of the side effects is that we frequently destroy all sessions, and as a side effect, we get logged out from the Magento admin area a lot.
Furthermore, we are running Magento 220.127.116.11 and this version comes with a built-in protection to save the Magento admin credentials in the browser. Basically, by removing the protection we were able to save the login credentials and to login much faster. I decided to save some clicks and I created a simple Magento extension that automatically logs in developers when they try to reach the admin area. Basically, I wrapped in the extension code for the admin auto login that can be found on the Internet, but I polished the code up a bit and added some configuration settings.
You can download CeckosLab_AutoLogin by cloning it from GitHub or installing it with Modman.
After you install the extension you have to configure it. The configuration page can be found by going to Admin -> System -> Configuration -> Developer -> Quick Login
There you have to set 2 configuration fields:
– Enabled (Enables the auto login function)
– Admin Autologin Username (A dropdown where you choose the username to use for the auto-login)
Without those 2 settings the auto login won’t work.
It is not good idea this extension to be used on production environment so I decided to add notification message in case you are logged in by this extension.
Hope that this extension will help to somebody!
Your thoughts / questions?