From cde7dd3ce1f4d222b0077eef5a44e3938ff4a5fb Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 11 Oct 2015 22:29:14 +1030 Subject: [PATCH] Make sure activation status/email is returned when creating a user --- src/Api/Serializer/CurrentUserSerializer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Api/Serializer/CurrentUserSerializer.php b/src/Api/Serializer/CurrentUserSerializer.php index 1cf6a69fb..46fb3ea24 100644 --- a/src/Api/Serializer/CurrentUserSerializer.php +++ b/src/Api/Serializer/CurrentUserSerializer.php @@ -20,6 +20,8 @@ class CurrentUserSerializer extends UserSerializer $attributes = parent::getDefaultAttributes($user); $attributes += [ + 'isActivated' => $user->is_activated, + 'email' => $user->email, 'readTime' => $this->formatDate($user->read_time), 'unreadNotificationsCount' => (int) $user->getUnreadNotificationsCount(), 'newNotificationsCount' => (int) $user->getNewNotificationsCount(),