[Web] Ask for confirmation before deleting OTP; Twig: fix parsing of Yubi OTP help text

master
andryyy 2021-10-24 08:17:17 +02:00
parent a26bbff63f
commit 514e620c89
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<input type="text" class="form-control" name="key_id" placeholder="{{ lang.tfa.key_id }}" autocomplete="off" required>
</div>
<hr>
<p class="help-block">{{ lang.tfa.api_register|format(ui_texts.main_name) }}</p>
<p class="help-block">{{ lang.tfa.api_register|format(ui_texts.main_name)|raw }}</p>
<div class="form-group">
<input type="text" class="form-control" name="yubico_id" placeholder="Yubico API ID" autocomplete="off" required>
</div>

View File

@ -6,7 +6,7 @@
<p>
<span style="padding:4px;margin:4px" class="label label-keys label-{% if tfa_id == key_info.id %}success{% else %}default{% endif %}">
{{ key_info.key_id }}
<a href="#" style="font-weight:bold;color:white" onClick="$(this).closest('form').submit()">[{{ lang.admin.remove }}]</a>
<a href="#" style="font-weight:bold;color:white" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";'>[{{ lang.admin.remove }}]</a>
</span>
</p>
</form>