vaimo / module-admin-auto-login

vaimo/module-admin-auto-login

Provides automatic admin login on Magento projects; Useful addition when working with a project locally (should be used only as require-dev)

  • Rafael Kassner
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass Apache-2.0

vaimo/module-admin-auto-login

Latest Stable Version
Total Downloads
Daily Downloads
License

This module bypasses the admin panel login screen, automatically logging in as
the user provided in the configuration. Since it doesn't run any validations,
this module should be used only on local environments (i.e.: not public).

Installation

composer require --dev vaimo/module-admin-auto-login
php bin/magento module:enable Vaimo_AdminAutoLogin
php bin/magento setup:upgrade

Usage

Access the admin URL for the project. You should be logged in automatically.

Configuration

You can change the user to login in Stores > Settings > Configuration >
Advanced > Admin > Admin Auto Login.

If no username is assigned in the admin pages, it will fallback to jambi or
admin (in that order). If none of those are available, it will fallback to the
first user it finds.

Support

Support will be provided on a best efforts basis through GitHub Issues.
Pull requests are welcome.

Change Log

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.

Unreleased

[1.4.5] - 2022-06-02

Fixed

  • Fix Magento Framework version requirements in composer.json to make module possibly to require with M2.4.x

[1.4.4] - 2022-05-06

Added

  • Disable password changing request if module is active
  • Handle "There are no admin users to attempt login to." error more gracefully

[1.4.3] - 2022-05-03

Added

  • Support for Magento 2.4.x

[1.4.2] - 2019-03-28

Fixed

[1.4.1] - 2018-07-24

Fixed

[1.4.0] - 2017-11-09

Added

  • Support for Magento 2.2

[1.3.0] - 2017-05-08

Added

  • Public release
  • Changelog
  • Do not redirect back to dashboard after session expiration
Versions
Version Stability QA Status Compatibility Released
1.4.5 stable Fail Magento 2.4.7-2.4.9 Details 2022-06-02 11:55:10
1.4.4 stable Not tested Not yet tested Details 2022-05-06 12:14:42
1.4.3 stable Not tested Not yet tested Details 2022-05-03 07:23:28
1.4.2 stable Not tested Not yet tested Details 2019-03-28 13:11:48
1.4.1 stable Not tested Not yet tested Details 2018-07-24 09:51:03
1.4.0 stable Not tested Not yet tested Details 2017-11-09 10:13:01
1.3.0 stable Not tested Not yet tested Details 2017-05-08 12:29:19

Requires 1

Package Constraint
magento/framework 100.* | 101.* | 102.* | 103.*

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 3 3 warnings (ruleset: Magento2) — 2 auto-fixable with phpcbf
PHPMD Warning 7 7 rule violations (UnusedFormalParameter:4, MissingImport:3)
Cpd Pass 0
Composer validate Pass 0

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 7 7
2.4.8 7 7
2.4.9 7 7

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
Apache-2.0
Authors

More from Vaimo

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.