summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-08-29 13:25:25 +0200
committerGitHub <noreply@github.com>2017-08-29 13:25:24 +0200
commit79a7b7f192e0b6e3b0c2c5fe76b8331b531c4cda (patch)
tree38bf14a0792f04bec231a25459a23cce78fd4151 /core
parent7d8b7d4e4ea83fc31ea64446e9085185c476de09 (diff)
parent0aff1c9268e760c2e1164f85ea8414ad0d1fa91c (diff)
downloadnextcloud-server-79a7b7f192e0b6e3b0c2c5fe76b8331b531c4cda.tar.gz
nextcloud-server-79a7b7f192e0b6e3b0c2c5fe76b8331b531c4cda.zip
Merge pull request #6293 from nextcloud/less-user-enumeration
Return the user id in case of an error
Diffstat (limited to 'core')
-rw-r--r--core/Controller/AvatarController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index cb0ece9fa45..e4d13d218a5 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -143,7 +143,7 @@ class AvatarController extends Controller {
} catch (\Exception $e) {
$resp = new JSONResponse([
'data' => [
- 'displayname' => '',
+ 'displayname' => $userId,
],
]);
}