flancer32/mage2_ext_login_as

'Login As' module for Magento 2.

Installs: 4 050

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 1

Open Issues: 0

Type:magento2-module

0.2.4 2020-05-26 11:52 UTC

This package is auto-updated.

Last update: 2024-10-26 21:09:05 UTC


README

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

Demo

Login here as:

  • user: fl32_loginas_full
  • password: Ss4N1i1Poq8bOjzbcOWi

Install

From console

$ 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'

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

Development version

See here.

Uninstall

You need an authentication keys for https://repo.magento.com/ to uninstall any Magento 2 module. Go to your Magento Connect 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 and put your authentication keys for https://repo.magento.com/ into the authentication file:

{
  "http-basic": {
    "repo.magento.com": {
      "username": "...",
      "password": "..."
    }
  }
}

Then run these commands to completely uninstall Flancer32_LoginAs module:

$ 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 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:

$ rm ./auth.json