Skip to content

Commit 41e2c01

Browse files
TSI-kavitasonawaneimbencsi
authored andcommitted
Settings-Replace username with email address
1 parent e9ef5c2 commit 41e2c01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/settings/lib/Controller/AuthSettingsController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ public function create($name) {
135135

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

138+
$user = $this->userSession->getUser();
138139
return new JSONResponse([
139140
'token' => $token,
140-
'loginName' => $loginName,
141+
'loginName' => $user->getEMailAddress(),
141142
'deviceToken' => $tokenData,
142143
]);
143144
}

0 commit comments

Comments
 (0)