Skip to content

Commit 336924a

Browse files
TSI-kavitasonawanememurats
authored andcommitted
Settings-Replace username with email address
1 parent 28d02b6 commit 336924a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/settings/lib/Controller/AuthSettingsController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ public function create($name) {
157157

158158
$this->publishActivity(Provider::APP_TOKEN_CREATED, $deviceToken->getId(), ['name' => $deviceToken->getName()]);
159159

160+
$user = $this->userSession->getUser();
160161
return new JSONResponse([
161162
'token' => $token,
162-
'loginName' => $loginName,
163+
'loginName' => $user->getEMailAddress(),
163164
'deviceToken' => $tokenData,
164165
]);
165166
}

0 commit comments

Comments
 (0)