aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig19
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig8
2 files changed, 17 insertions, 10 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>
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 73cf592e..5b00eb7b 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
@@ -112,7 +112,7 @@
112 <img id="androidQrcode" class="hide-on-med-and-down" /> 112 <img id="androidQrcode" class="hide-on-med-and-down" />
113 </div> 113 </div>
114 <script> 114 <script>
115 document.getElementById('androidQrcode').src = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}');; 115 document.getElementById('androidQrcode').src = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}');
116 </script> 116 </script>
117 </div> 117 </div>
118 118
@@ -220,12 +220,16 @@
220 <br/><br/> 220 <br/><br/>
221 <img id="2faQrcode" class="hide-on-med-and-down" /> 221 <img id="2faQrcode" class="hide-on-med-and-down" />
222 <script> 222 <script>
223 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');; 223 document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');
224 </script> 224 </script>
225 <br/><br/> 225 <br/><br/>
226 {{ 'config.form_user.two_factor_code_description_3'|trans }} 226 {{ 'config.form_user.two_factor_code_description_3'|trans }}
227 <br/><br/> 227 <br/><br/>
228 <strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong> 228 <strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
229 <br/><br/>
230 {{ 'config.form_user.two_factor_code_description_4'|trans }}
231 <br/><br/>
232 <strong>{{ app.user.getBackupCodes|join("\n")|nl2br }}</strong>
229 </div> 233 </div>
230 {% endfor %} 234 {% endfor %}
231 {% endif %} 235 {% endif %}