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:
- firstName
- lastName
Installation details
composer collab/module-customer-passwordless-login bin/magento setup:upgrade
统计信息
- 总下载量: 632
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-26