mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 02:01:36 +01:00
Provide use_path
to qr generator for svg data size reduction (#32127)
This commit is contained in:
parent
2151dfb8d6
commit
d270d6dd4f
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
%p.hint= t('otp_authentication.instructions_html')
|
||||
|
||||
.qr-wrapper
|
||||
.qr-code!= @qrcode.as_svg(padding: 0, module_size: 4)
|
||||
.qr-code!= @qrcode.as_svg(padding: 0, module_size: 4, use_path: true)
|
||||
|
||||
.qr-alternative
|
||||
%p.hint= t('otp_authentication.manual_instructions')
|
||||
|
|
|
@ -18,7 +18,7 @@ RSpec.describe Settings::TwoFactorAuthentication::ConfirmationsController do
|
|||
def qr_code_markup
|
||||
RQRCode::QRCode.new(
|
||||
'otpauth://totp/cb6e6126.ngrok.io:local-part%40domain?secret=thisisasecretforthespecofnewview&issuer=cb6e6126.ngrok.io'
|
||||
).as_svg(padding: 0, module_size: 4)
|
||||
).as_svg(padding: 0, module_size: 4, use_path: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue