定制 collab/module-customer-passwordless-login 二次开发

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

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

collab/module-customer-passwordless-login

最新稳定版本:1.0.0

Composer 安装命令:

composer require collab/module-customer-passwordless-login

包简介

A Magento 2 module which provides service to allow customers to login without a password

README 文档

README

The Collab_CustomerPasswordLessLogin module allows You to use its service in order to create an account or login frontend user without the need of a password. Useful for integrations with 3rd party authenticatators like Google, Facebook and theirs services like Facebook Login, Google One Tap etc.

Basic usage

<?php
...
use Collab\CustomerPasswordLessLogin\Service\LoginWithoutPassword;
...
public function __construct(
    protected LoginWithoutPassword $loginWithoutPassword
) {
}
...
$this->loginWithoutPassword->login([
    'email' => $payload['email'],
    'firstName' => $payload['given_name'],
    'lastName' => $payload['family_name']
]);
...

Service's login method accepts an array with the following keys:

  • email
  • firstName
  • lastName

Installation details

composer collab/module-customer-passwordless-login
bin/magento setup:upgrade

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-26