[Web] Ask for confirmation before deleting OTP; Twig: fix parsing of Yubi OTP help text
parent
a26bbff63f
commit
514e620c89
|
@ -12,7 +12,7 @@
|
||||||
<input type="text" class="form-control" name="key_id" placeholder="{{ lang.tfa.key_id }}" autocomplete="off" required>
|
<input type="text" class="form-control" name="key_id" placeholder="{{ lang.tfa.key_id }}" autocomplete="off" required>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<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">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control" name="yubico_id" placeholder="Yubico API ID" autocomplete="off" required>
|
<input type="text" class="form-control" name="yubico_id" placeholder="Yubico API ID" autocomplete="off" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<p>
|
<p>
|
||||||
<span style="padding:4px;margin:4px" class="label label-keys label-{% if tfa_id == key_info.id %}success{% else %}default{% endif %}">
|
<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 }}
|
{{ 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>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue