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 Sep 5, 2023
2 parents 9f64106 + 33587e4 commit 7b14aa7
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 7b14aa7

Please sign in to comment.