illchuk / zfc-user-substitute
It's like the su command for ZfcUser & ZF3.
v0.1.1
2017-09-13 16:53 UTC
Requires
- php: ^5.5|^7.0
- phpoption/phpoption: ^1.0
- zf-commons/zfc-user: ^3.0
This package is auto-updated.
Last update: 2025-01-08 10:52:49 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; ?>