Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Fix missing coma.
Browse files Browse the repository at this point in the history
Beautification for tabs alignment
Fix autologin with autologin with email which did not work ...
  • Loading branch information
Jordan Bieder committed Oct 24, 2019
1 parent f78e95d commit 6c7931e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions rainloop/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
appinfo/app.php<?php

/**
* Nextcloud - RainLoop mail plugin
Expand Down Expand Up @@ -36,24 +36,24 @@
$sEncodedPassword = '';

$sUser = OCP\User::getUser();
$sPasswordSalt = '';
$sPasswordSalt = '';

if (\OC::$server->getConfig()->getAppValue('rainloop', 'rainloop-autologin', false))
{
$sEmail = $sUser;
$sPasswordSalt = $sUser;
$sPasswordSalt = $sUser;
$sEncodedPassword = \OC::$server->getConfig()->getUserValue($sUser, 'rainloop', 'rainloop-autologin-password', '');
}
else if (\OC::$server->getConfig()->getAppValue('rainloop', 'rainloop-autologin-with-email', false))
{
$sEmail = \OC::$server->getConfig()->getUserValue($sUser, 'settings', 'email','');
$sPasswordSalt = $sUser;
$sPasswordSalt = $sUser;
$sEncodedPassword = \OC::$server->getConfig()->getUserValue($sUser, 'rainloop', 'rainloop-autologin-password', '');
}
else
{
$sEmail = \OC::$server->getConfig()->getUserValue($sUser, 'rainloop', 'rainloop-email', '');
$sPasswordSalt = $sEmail
$sPasswordSalt = $sEmail;
$sEncodedPassword = \OC::$server->getConfig()->getUserValue($sUser, 'rainloop', 'rainloop-password', '');
}

Expand Down
2 changes: 1 addition & 1 deletion rainloop/appinfo/app.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
OCP\App::registerAdmin('rainloop', 'admin');
OCP\App::registerPersonal('rainloop', 'personal');

if (\OC::$server->getConfig()->getAppValue('rainloop', 'rainloop-autologin', false))
if (\OC::$server->getConfig()->getAppValue('rainloop', 'rainloop-autologin', false) || \OC::$server->getConfig()->getAppValue('rainloop', 'rainloop-autologin-with-email', false))
{
OCP\Util::connectHook('OC_User', 'post_login', 'OC_RainLoop_Helper', 'login');
OCP\Util::connectHook('OC_User', 'post_setPassword', 'OC_RainLoop_Helper', 'changePassword');
Expand Down

0 comments on commit 6c7931e

Please sign in to comment.