Automatic login with ownCloud credentials

This commit is contained in:
Martin Porcheron 2014-08-09 21:46:23 +01:00
parent 86f282f885
commit 2f52f826bd
21 changed files with 259 additions and 152 deletions

View file

@ -16,8 +16,9 @@ OCP\Util::addScript('rainloop', 'personal');
$sUrl = trim(OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
$sPath = trim(OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
$bAutologin = OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false);
if ('' === $sUrl || '' === $sPath)
if ('on' === $bAutologin || '' === $sUrl || '' === $sPath)
{
$oTemplate = new OCP\Template('rainloop', 'empty');
}