diff --git a/passbook/stages/otp_time/stage.py b/passbook/stages/otp_time/stage.py index 039cc8e0e..bd557cc66 100644 --- a/passbook/stages/otp_time/stage.py +++ b/passbook/stages/otp_time/stage.py @@ -35,7 +35,9 @@ class OTPTimeStageView(FormView, StageView): """Get QR Code SVG as string based on `device`""" qr_code = QRCode(image_factory=SvgFillImage) qr_code.add_data(device.config_url) - return force_str(tostring(qr_code.make_image().get_image())) + svg_image = tostring(qr_code.make_image().get_image()) + sr_wrapper = f'
{force_str(svg_image)}
' + return sr_wrapper def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: user = self.executor.plan.context.get(PLAN_CONTEXT_PENDING_USER)