mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 01:28:56 +08:00
Small fix
This commit is contained in:
parent
0fc8967a7f
commit
8cfd52ef12
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,12 @@ else
|
|||
$sLogin = OCP\Config::getUserValue($sUser, 'rainloop', 'rainloop-login', '');
|
||||
$sPassword = OCP\Config::getUserValue($sUser, 'rainloop', 'rainloop-password', '');
|
||||
|
||||
$sUrl = \rtrim($sUrl, '/\\');
|
||||
if ('.php' !== \strtolower(\substr($sUrl), -4))
|
||||
{
|
||||
$sUrl .= '/';
|
||||
}
|
||||
|
||||
include_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';
|
||||
$sPassword = OC_RainLoop_Helper::decodePassword($sPassword, md5($sEmail.$sLogin));
|
||||
$sSsoHash = OC_RainLoop_Helper::getSsoHash($sUrl, $sSsoKey, $sEmail, $sPassword, $sLogin);
|
||||
|
|
Loading…
Reference in a new issue