Skip to content

dillchuk/ZfcUserSubstitute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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