Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(enrollment): reduce size of deeplink and QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 26, 2017
1 parent b5d0c4b commit faacfde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/invitation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ protected function createQRCodeDocument(User $user, $învitationToken) {
'support_phone' => $entityConfig->getField('support_phone'),
'support_website' => $entityConfig->getField('support_website'),
'support_email' => $entityConfig->getField('support_email'),
'support_address' => $entityConfig->getField('support_address'),
//'support_address' => $entityConfig->getField('support_address'),
];

$encodedRequest = PluginFlyvemdmNotificationTargetInvitation::DEEPLINK
. base64_encode(json_encode($enrollmentData, JSON_UNESCAPED_SLASHES));
. addcslashes(implode(';', $enrollmentData), '\;');

// Generate a QRCode
$barcodeobj = new TCPDF2DBarcode($encodedRequest, 'QRCODE,L');
Expand Down
4 changes: 2 additions & 2 deletions inc/notificationtargetinvitation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public static function getAdditionalDatasForTemplate(NotificationTarget $event)
'support_phone' => $entityConfig->getField('support_phone'),
'support_website' => $entityConfig->getField('support_website'),
'support_email' => $entityConfig->getField('support_email'),
'support_address' => $entityConfig->getField('support_address'),
//'support_address' => $entityConfig->getField('support_address'),
];

$encodedRequest = PluginFlyvemdmNotificationTargetInvitation::DEEPLINK
. base64_encode(json_encode($enrollmentData, JSON_UNESCAPED_SLASHES));
. addcslashes(implode(';', $enrollmentData), '\;');

// Fill the template
$event->data['##flyvemdm.qrcode##'] = Document::getImageTag($document->getField('tag'));
Expand Down

0 comments on commit faacfde

Please sign in to comment.