定制 hytales/module-one-link-login 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hytales/module-one-link-login

Composer 安装命令:

composer require hytales/module-one-link-login

包简介

OneLink login module

README 文档

README

Magento 2 module that lets a developer log in to the admin panel via a single URL, without a password. Makes local and shared development environments faster to work with by skipping the login form, and refuses to run unless Magento is confirmed to be in developer mode — it will not function in production.

Installation

Available on Packagist. Install via Composer:

composer require hytales/module-one-link-login
bin/magento module:enable HyTales_OneLinkLogin
bin/magento setup:upgrade

How it works

Visiting admin/onelinklogin/index/index?email=<email> logs the browser in as the admin user matching <email>, provided that email is present in the module's configured account list. If no admin user exists yet for that email, one is created automatically with the configured role. Two-factor authentication is bypassed for this login.

The action only works when Magento is running in developer mode. In any other mode it returns a 404.

Configuration

Settings live under Stores > Configuration > Advanced > Admin > One-Link Login:

  • Enabled — turns the feature on or off. Disabled by default.
  • Accounts — a list of label, email, and role_id entries. Only emails present here can use the one-link login.

The Enabled setting can also be set via CLI:

bin/magento config:set admin/onelinklogin/enabled 1

Security warning

This module bypasses password authentication and two-factor authentication for any email in its account list. It checks that Magento is running in developer mode and returns a 404 otherwise, so it will not function on a production-mode instance — but this check is the only safeguard in place. Do not enable it on any environment reachable outside a trusted developer team, and never configure it with an administrator role unless that is intended.

License

MIT, see LICENSE.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固