aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
index 887d154f..ca7eb9f3 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
@@ -212,20 +212,20 @@
212 </div> 212 </div>
213 </div> 213 </div>
214 214
215 {% for OTPSecret in app.session.flashbag.get('OTPSecret') %} 215 {% for OtpQrCode in app.session.flashbag.get('OtpQrCode') %}
216 <div class="card-panel yellow darken-1 black-text"> 216 <div class="card-panel yellow darken-1 black-text">
217 You just enabled the OTP two factor authentication, open your OTP app and use that code to get a one time password. 217 You just enabled the OTP two factor authentication, open your OTP app and use that code to get a one time password.
218 <br/> 218 <br/>
219 That code will disapear after a page reload. 219 That code will disapear after a page reload.
220 <br/><br/> 220 <br/><br/>
221 <strong>{{ OTPSecret.code }}</strong> 221 <strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
222 <br/><br/> 222 <br/><br/>
223 Or you can scan that QR Code with your app: 223 Or you can scan that QR Code with your app:
224 <br/> 224 <br/>
225 <img id="2faQrcode" class="hide-on-med-and-down" /> 225 <img id="2faQrcode" class="hide-on-med-and-down" />
226 226
227 <script> 227 <script>
228 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OTPSecret.qrCode }}');; 228 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');;
229 </script> 229 </script>
230 </div> 230 </div>
231 {% endfor %} 231 {% endfor %}