mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Nextcloud Impersonate idea
https://github.com/nextcloud/impersonate/issues/179
This commit is contained in:
parent
0a21485003
commit
1ced0dcd1e
1 changed files with 9 additions and 0 deletions
|
@ -99,5 +99,14 @@ class Application extends App implements IBootstrap
|
|||
SnappyMailHelper::loadApp();
|
||||
\RainLoop\Api::Actions()->Logout(true);
|
||||
});
|
||||
|
||||
/*
|
||||
// https://github.com/nextcloud/impersonate/issues/179
|
||||
$userSession->listen('\OC\User', 'impersonate', function($user, $newUser) {
|
||||
\OC::$server->getSession()['snappymail-password'] = '';
|
||||
SnappyMailHelper::loadApp();
|
||||
\RainLoop\Api::Actions()->Logout(true);
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue