mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Release commit
This commit is contained in:
parent
86f855fa5b
commit
b01f298b7b
13 changed files with 121 additions and 42 deletions
|
|
@ -110,8 +110,24 @@ class OC_RainLoop_Helper
|
|||
|
||||
public static function logout()
|
||||
{
|
||||
return OCP\Config::setUserValue(
|
||||
OCP\Config::setUserValue(
|
||||
OCP\User::getUser(), 'rainloop', 'rainloop-autologin-password', '');
|
||||
|
||||
$sApiPath = __DIR__.'/../app/index.php';
|
||||
if (file_exists($sApiPath))
|
||||
{
|
||||
self::regRainLoopDataFunction();
|
||||
|
||||
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
|
||||
include $sApiPath;
|
||||
|
||||
if (class_exists('\\RainLoop\\Api'))
|
||||
{
|
||||
\RainLoop\Api::LogoutCurrentLogginedUser();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function changePassword($aParams)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue