From 3579429ac16b8299b14853dd46745644db27a734 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 2 Apr 2020 14:44:48 -0400 Subject: [PATCH] add 32px border around TOTP QR, fixes #71 --- .../templates/registration/totp/edit.html.slime | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/registration/totp/edit.html.slime b/lib/philomena_web/templates/registration/totp/edit.html.slime index bd6ece53..ccf9912d 100644 --- a/lib/philomena_web/templates/registration/totp/edit.html.slime +++ b/lib/philomena_web/templates/registration/totp/edit.html.slime @@ -110,7 +110,10 @@ h1 Two Factor Authentication strong = @totp_secret p - img src=@totp_qrcode alt="QR Code" + svg xmlns="http://www.w3.org/2000/svg" width="392" height="392" + rect fill="#fff" width="392" height="392" + image xlink:href=@totp_qrcode alt="QR Code" x="32" y="32" + h4 Confirm pairing p Enter the code generated by your authenticator app into the field below for verification. = text_input f, :twofactor_token, class: "input", placeholder: "6-digit code", autocomplete: "off" @@ -132,4 +135,4 @@ h1 Two Factor Authentication = submit "Save Account", class: "button" -p = link "Back", to: Routes.pow_registration_path(@conn, :edit) \ No newline at end of file +p = link "Back", to: Routes.pow_registration_path(@conn, :edit)