Skip to content

Commit

Permalink
Merge #219 Use email address as identifier for token in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gsztupov committed Jan 16, 2024
2 parents df177b3 + 33587e4 commit 476e31e
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 @@ -156,9 +156,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 476e31e

Please sign in to comment.