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
tsdicloud committed Jun 20, 2023
2 parents c0516e4 + 33587e4 commit 6c1d9f5
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 6c1d9f5

Please sign in to comment.