From 28be1bd5959783046ca812502bb7d6229d9952ed Mon Sep 17 00:00:00 2001 From: henmohr Date: Thu, 28 May 2026 17:04:57 -0300 Subject: [PATCH 1/2] Skip WhatsApp send on signed event --- lib/AppInfo/Application.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 43238b34fd..e690932f33 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -89,7 +89,6 @@ public function register(IRegistrationContext $context): void { // TwofactorGateway listener $context->registerEventListener(SendSignNotificationEvent::class, TwofactorGatewayListener::class); - $context->registerEventListener(SignedEvent::class, TwofactorGatewayListener::class); $context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class); From 5c9139ad42f5cf1e0a467c45aa0c937fb75b3eab Mon Sep 17 00:00:00 2001 From: henmohr Date: Wed, 3 Jun 2026 13:00:08 -0300 Subject: [PATCH 2/2] fix: pass WhatsApp body parameters from LibreSign --- lib/Listener/TwofactorGatewayListener.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Listener/TwofactorGatewayListener.php b/lib/Listener/TwofactorGatewayListener.php index 8ae6162d2d..7a87fe9a30 100644 --- a/lib/Listener/TwofactorGatewayListener.php +++ b/lib/Listener/TwofactorGatewayListener.php @@ -101,7 +101,12 @@ protected function sendSignNotification( $gatewayName = $this->getGatewayName($entity->getIdentifierKey()); $gateway = $gatewayFactory->get($gatewayName); try { - $gateway->send($identifier, $message); + $gateway->send($identifier, $message, [ + 'body_parameters' => [ + $link, + $libreSignFile->getName(), + ], + ]); } catch (Exception $e) { $this->logger->error('Could not send 2FA message', [ 'identifier' => $identifier,