illchuk/zfc-user-substitute

It's like the su command for ZfcUser & ZF3.

v0.1.1 2017-09-13 16:53 UTC

This package is auto-updated.

Last update: 2024-04-08 09:07:40 UTC


README

It's like the su command for ZfcUser & ZF3.

Installation

In your modules.config.php, set up

'ZfcUser', 'ZfcUserSubstitute'

Then, when logged in, hit the following URI:

/admin/user/substitute/<existing user ID>

Ensure the above is locked down with access controls!

Then, to exit, hit the following URI:

/admin/user/unsubstitute

You can put this exit on the UI as follows:

<?php if ($this->originalIdentity()): ?>
<a href="<?php echo $this->url('zfcusersubstitute/unsubstitute') ?>">Back to original user</a>
<?php endif; ?>