Yireo_AdminAutoLogin

PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
License OSL-3.0
Latest Release 1.0.1

Automatically login a specified user without any JavaScript trick or weird redirect, but simply by spoofing the login mechanism

Obviously, don't use in production.

Usage

Install this module with your jedi skills.

Next, configure the username under which you want to login automatically:

magerun2 config:store:set system/admin/autologin_username exampleAdmin

It should now work.

Current status

Magento 2 Integration Tests success
Magento 2 Static Tests success
Magento 2 Unit Tests success
Playwright test success
Magento 2 DI compilation success

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_AdminAutoLogin

Composer details
Magento module name
Yireo_AdminAutoLogin
Composer name
yireo/magento2-admin-auto-login
Composer version
No release yet
Default branch
master
Requirements
magento/framework: ^101.0|^102.0|^103.0
magento/module-backend: ^101.0|^102.0
magento/module-user: ^101.0
php: >=8.2 <8.6
Releases
1.0.1 06 November 2026
Changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.1] - 26 May 2023

Added

  • Fix wrong variable name #2 (@nenes25)

[1.0.0] - March 2022

Added

  • Initial public release

Last modified: October 17, 2026