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 Jan 15, 2024
2 parents c983f5f + 33587e4 commit dfb75dc
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 dfb75dc

Please sign in to comment.