1
0
mirror of https://github.com/moparisthebest/user_sql synced 2024-11-25 18:42:22 -05:00

Fix a small bug when checking whether a user exists

This commit is contained in:
Andreas Boehler 2016-08-30 15:31:24 +02:00
parent 57c8575c91
commit a0249ae1a4

View File

@ -416,7 +416,12 @@ class OC_USER_SQL extends \OC_User_Backend implements \OCP\IUserBackend, \OCP\Us
\OCP\Util::writeLog('OC_USER_SQL', "Entering userExists() for UID: $uid", \OCP\Util::DEBUG);
$uid = $this -> doUserDomainMapping($uid);
// Only if the domain is removed for internal user handling,
// we should add the domain back when checking existance
if($this -> settings['set_strip_domain'] === 'true')
{
$uid = $this -> doUserDomainMapping($uid);
}
$exists = (bool)$this -> helper -> runQuery('userExists', array('uid' => $uid));;
$this -> setCache ($cacheKey, $exists, 60);