mirror of
https://github.com/moparisthebest/user_sql
synced 2024-11-26 02:52:21 -05:00
Fix a small bug when checking whether a user exists
This commit is contained in:
parent
57c8575c91
commit
a0249ae1a4
@ -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);
|
\OCP\Util::writeLog('OC_USER_SQL', "Entering userExists() for UID: $uid", \OCP\Util::DEBUG);
|
||||||
|
|
||||||
|
// 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);
|
$uid = $this -> doUserDomainMapping($uid);
|
||||||
|
}
|
||||||
|
|
||||||
$exists = (bool)$this -> helper -> runQuery('userExists', array('uid' => $uid));;
|
$exists = (bool)$this -> helper -> runQuery('userExists', array('uid' => $uid));;
|
||||||
$this -> setCache ($cacheKey, $exists, 60);
|
$this -> setCache ($cacheKey, $exists, 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user