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 authored and solracsf committed Jun 12, 2024
1 parent 2b212f3 commit 60e004c
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 60e004c

Please sign in to comment.