Skip to content

Commit f0ce0a6

Browse files
committed
Merge #219 Use email address as identifier for token in settings
2 parents 3e922a3 + 33587e4 commit f0ce0a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/settings/lib/Controller/AuthSettingsController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ public function create($name) {
156156

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

159+
$user = $this->userSession->getUser();
159160
return new JSONResponse([
160161
'token' => $token,
161-
'loginName' => $loginName,
162+
'loginName' => $user->getEMailAddress(),
162163
'deviceToken' => $tokenData,
163164
]);
164165
}

0 commit comments

Comments
 (0)