Download the PHP package samjuk/m2-module-auto-login-admin without Composer
On this page you can find all versions of the php package samjuk/m2-module-auto-login-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samjuk/m2-module-auto-login-admin
More information about samjuk/m2-module-auto-login-admin
Files in samjuk/m2-module-auto-login-admin
Package m2-module-auto-login-admin
Short Description Automatically logins into the Admin panel, to a preset user
License MIT
Informations about the package m2-module-auto-login-admin
SamJUK_AutoLoginAdmin
This module removes the Authentication step to access the admin panel, instead directly logs into a pre defined user.
It is aimed to be run within development and/or ephemeral environments only.
Whilst the module has protections builtin to avoid running in production, this code should never make it there to begin with.
Installation
Installation may vary depending on your specific environment.
Composer Dev Dependency
The recommended approach to installing the module is via a composer dev dependency. This should prevent the module from being installed on production/pre-production environments.
Manual
If for some reason your upstream environments are installing dev dependencies, you can opt for manual installation. Either at build time within your CI, or on the fly during deployment, by running the following from the project root.
Configuration
The default configuration of the module is to do nothing, even in development environments. With the potential risk involved, I deem, its better for the end user to be implicit in their intent to use this module.
That said, post installation, the module can be enabled with the following command.
A full breakdown of the available configuration is listed within the table below.
| Config Path | Default | Description |
|---|---|---|
samjuk_auto_login_admin/general/auto_login |
0 |
Boolean flag to enable the module |
samjuk_auto_login_admin/general/username |
admin |
Admin username to Auto Login as |
samjuk_auto_login_admin/general/skip_production_mode_check |
0 |
Boolean flag, for if the module should run in production mode. |