Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 600 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 600 Bytes

ZfcUserSubstitute

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; ?>