Skip to content

Commit

Permalink
add direct GET param to invite email 'view share' link to make sure g…
Browse files Browse the repository at this point in the history
…uests can login when SSO is enabled (with user_saml, user_oidc...)

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Apr 29, 2024
1 parent c30b0c4 commit 6a2cbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function sendGuestInviteMail(string $uid, string $shareWith, Share\IShare
$expiration = $share->getExpirationDate();

$link = $this->urlGenerator->linkToRouteAbsolute(
'files.viewcontroller.showFile', ['fileid' => $share->getNodeId()]
'files.viewcontroller.showFile', ['fileid' => $share->getNodeId(), 'direct' => 1]
);

$emailTemplate = $this->mailer->createEMailTemplate('guest.invite');
Expand Down

0 comments on commit 6a2cbc9

Please sign in to comment.