Skip to content

Commit

Permalink
[wkd] Set User attribute when importing PGP key
Browse files Browse the repository at this point in the history
  • Loading branch information
y3n4 committed Apr 21, 2024
1 parent 1cf3044 commit 3c32e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/StartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private function importOpenPgpKey(Request $request, User $user, string $key): Op
{
$openPgpKey = new OpenPgpKey();
try {
$openPgpKey = $this->wkdHandler->importKey($key, $user);
$openPgpKey = $this->wkdHandler->importKey($key, $user->getEmail(), $user);
$request->getSession()->getFlashBag()->add('success', 'flashes.openpgp-key-upload-successful');
} catch (NoGpgDataException) {
$request->getSession()->getFlashBag()->add('error', 'flashes.openpgp-key-upload-error-no-openpgp');
Expand Down

0 comments on commit 3c32e37

Please sign in to comment.