Skip to content

Commit

Permalink
Settings-Replace username with email address
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-kavitasonawane authored and gsztupov committed Mar 8, 2024
1 parent a225cc3 commit 5884537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/settings/lib/Controller/AuthSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ public function create($name) {

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

$user = $this->userSession->getUser();
return new JSONResponse([
'token' => $token,
'loginName' => $loginName,
'loginName' => $user->getEMailAddress(),
'deviceToken' => $tokenData,
]);
}
Expand Down

0 comments on commit 5884537

Please sign in to comment.