otp: show secret as plaintext if a user can't scan qrcode

Fixes #4818

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf
2020-12-19 12:53:29 +01:00
parent 88ad78373d
commit 41271bc153
4 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,10 @@
document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ qr_code }}');
</script>
</p>
<p>
{{ 'config.otp.app.two_factor_code_description_5'|trans }} <pre>{{ secret }}</pre>
</p>
</li>
<li>
<p>{{ 'config.otp.app.two_factor_code_description_3'|trans }}</p>