Nextcloud Impersonate idea

https://github.com/nextcloud/impersonate/issues/179
This commit is contained in:
the-djmaze 2022-11-04 09:27:22 +01:00
parent 0a21485003
commit 1ced0dcd1e

View file

@ -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);
});
*/
}
}