summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-25 11:24:13 +0200
committerGitHub <noreply@github.com>2016-10-25 11:24:13 +0200
commit740ff9108b4c600ba2b0a13139ffc84ce09579b1 (patch)
tree8d5efb36c1a167e8eb231de2b8841188eba54a18 /lib/private
parente8c359d86ee3ef982bd6979f8f4c75ada08d4628 (diff)
parent593d52fe913b4a3c29e857432317c73d24b952e3 (diff)
downloadnextcloud-server-740ff9108b4c600ba2b0a13139ffc84ce09579b1.tar.gz
nextcloud-server-740ff9108b4c600ba2b0a13139ffc84ce09579b1.zip
Merge pull request #1884 from nextcloud/downstream-26292
Fix logClientIn for non-existing users (#26292)
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/User/Session.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 4b56609ccfc..a213ee48c2a 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -362,6 +362,9 @@ class Session implements IUserSession, Emitter {
$user = $this->manager->get($username);
if (is_null($user)) {
$users = $this->manager->getByEmail($username);
+ if (empty($users)) {
+ return false;
+ }
if (count($users) !== 1) {
return true;
}