Skip to content

fix(invite): Add logging and fix decryption key in InviteService#1507

Merged
icewind1991 merged 1 commit intomainfrom
fix/invite-email-silent-failure
Apr 29, 2026
Merged

fix(invite): Add logging and fix decryption key in InviteService#1507
icewind1991 merged 1 commit intomainfrom
fix/invite-email-silent-failure

Conversation

@nfebe
Copy link
Copy Markdown
Contributor

@nfebe nfebe commented Mar 12, 2026

sendInvite() will silently return false with no logging when the lostpassword token is missing. Added warning/error logs and fixed decryption key to use getEMailAddress() matching GuestManager encryption.

Aslo removed dead code in Hooks.php.

Comment thread lib/Hooks.php Outdated


$user = $this->userSession->getUser();
$this->userManager->get($shareWith);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this was supposed to catch some issues? Better to keep it and check if it's null to throw an error.

Copy link
Copy Markdown
Member

@icewind1991 icewind1991 Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UserSession::getUser should already do all the same checks.

sendInvite() will silently return false with no logging when the
lostpassword token is missing. Added warning/error logs and
fixed decryption key to use getEMailAddress() matching
GuestManager encryption.

Aslo removed dead code in Hooks.php.

Signed-off-by: nfebe <fenn25.fn@gmail.com>

# Conflicts:
#	lib/Hooks.php
@icewind1991 icewind1991 force-pushed the fix/invite-email-silent-failure branch from 95bc5ec to 075ee88 Compare April 29, 2026 13:30
@icewind1991 icewind1991 merged commit 3bf8801 into main Apr 29, 2026
55 checks passed
@icewind1991 icewind1991 deleted the fix/invite-email-silent-failure branch April 29, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants