aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
index 6ee57443..cf439408 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
@@ -187,19 +187,22 @@
187 </div> 187 </div>
188 {% for OtpQrCode in app.session.flashbag.get('OtpQrCode') %} 188 {% for OtpQrCode in app.session.flashbag.get('OtpQrCode') %}
189 <div class="row"> 189 <div class="row">
190 You just enabled the OTP two factor authentication, open your OTP app and use that code to get a one time password. 190 {{ 'config.form_user.two_factor_code_description_1'|trans }}
191 <br/> 191 <br/>
192 That code will disapear after a page reload. 192 {{ 'config.form_user.two_factor_code_description_2'|trans }}
193 <br/><br/> 193 <br/><br/>
194 <strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
195 <br/><br/>
196 Or you can scan that QR Code with your app:
197 <br/>
198 <img id="2faQrcode" class="hide-on-med-and-down" /> 194 <img id="2faQrcode" class="hide-on-med-and-down" />
199
200 <script> 195 <script>
201 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');; 196 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');
202 </script> 197 </script>
198 <br/><br/>
199 {{ 'config.form_user.two_factor_code_description_3'|trans }}
200 <br/><br/>
201 <strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
202 <br/><br/>
203 {{ 'config.form_user.two_factor_code_description_4'|trans }}
204 <br/><br/>
205 <strong>{{ app.user.getBackupCodes|join("\n")|nl2br }}</strong>
203 </div> 206 </div>
204 {% endfor %} 207 {% endfor %}
205 </fieldset> 208 </fieldset>