An open API service indexing awesome lists of open source software.

https://github.com/flancer32/mage2_ext_login_as

"Login as Customer" extension for Magento 2
https://github.com/flancer32/mage2_ext_login_as

Last synced: about 1 year ago
JSON representation

"Login as Customer" extension for Magento 2

Awesome Lists containing this project

README

          

# "Login As Customer" extension for Magento 2.

## Description

This extension adds ability for backend users (adminhtml) to log in as customers (frontend).

Attention: module version 0.2.x is not compatible with Magento versions before 2.3.x.

```
$ composer require flancer32/mage2_ext_login_as:"^0.1.0" # for Magento <2.3.x
$ composer require flancer32/mage2_ext_login_as # for Magento >=2.3.x
```

### Features
* Login button on [customer form](etc/dev/docs/screenshots/usage/customer_form/customer_form.md);
* Login links on "[Customers](etc/dev/docs/screenshots/usage/customers/customers.md)" & "[Sale Orders](etc/dev/docs/screenshots/usage/sale_orders/sale_orders.md)" grids;
* Login [events log](etc/dev/docs/screenshots/control/events_log.md);
* [ACL configuration](etc/dev/docs/screenshots/config/acl_config/acl_config.md), [UI Controls](etc/dev/docs/screenshots/config/ui_controls/ui_controls.md) , [Logs Cleanup](etc/dev/docs/screenshots/config/logs_cleanup/logs_cleanup.md)

### Demo
Login [here](http://loginas.m2.flancer64.com/admin/admin) as:
* user: **fl32_loginas_full**
* password: **Ss4N1i1Poq8bOjzbcOWi**

## Install

### From console

```bash
$ cd ${DIR_MAGE_ROOT} // go to Magento 2 root folder ('composer.json' file should be placed there)
$ composer require flancer32/mage2_ext_login_as
$ bin/magento module:enable Flancer32_LoginAs
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile

```

### Using 'composer.json'

```json
"require": {
"flancer32/mage2_ext_login_as": "^0.1"
}
```

### Development version

See [here](./etc/dev/docs/develop.md).

## Uninstall

You need an authentication keys for `https://repo.magento.com/` to uninstall any Magento 2 module. Go to your [Magento Connect](https://www.magentocommerce.com/magento-connect/customer/account/) account, section (My Account / Connect / Developer / Secure Keys) and generate pair of keys to connect to Magento 2 repository. Then place composer authentication file `auth.json` besides your `composer.json` as described [here](https://getcomposer.org/doc/articles/http-basic-authentication.md) and put your authentication keys for `https://repo.magento.com/` into the authentication file:
```json
{
"http-basic": {
"repo.magento.com": {
"username": "...",
"password": "..."
}
}
}
```

Then run these commands to completely uninstall `Flancer32_LoginAs` module:
```bash
$ cd ${DIR_MAGE_ROOT}
$ bin/magento module:uninstall Flancer32_Repo Flancer32_LoginAs // *
$ composer remove flancer32/php_data_object
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
```

\* - [this](https://github.com/magento/magento2/commit/16506521b55c41846e4d37e7cdf4a3ba05660a21) fix should be presented in Magento to uninstall multiple modules at once.

Be patient, uninstall process (`bin/magento module:uninstall ...`) takes about 2-4 minutes. Remove `auth.json` file at the end:

```bash
$ rm ./auth.json
```