Yireo_AdminAutoLogin

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
Latest Release 1.0.1

Magento version PHP version License Latest Version

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

Static Tests Unit Tests Integration Tests Playwright DI Compilation

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 23 October 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