Add 2FA icons to settings pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2022-11-11 13:25:57 +01:00
parent af383720b7
commit c24318f6b8
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<p style="color:red" id="err_target"></p> <p style="color:red" id="err_target"></p>
<div> <div>
<p>Please insert now on of your registered security key, and accept authentication request.</p> <p>Please insert now one of your registered security key, and accept authentication request.</p>
</div> </div>
<div style="margin: 10px 0px;"> <div style="margin: 10px 0px;">

View File

@ -80,7 +80,8 @@
<input type="checkbox" class="form-check-input two-fact-checkbox" <input type="checkbox" class="form-check-input two-fact-checkbox"
value="{{ f.id.0 }}" value="{{ f.id.0 }}"
checked=""/> checked=""/>
{{ f.name }} ({{ f.type_str() }}) {{ f.name }} (<img src="{{ f.type_image() }}" alt="Factor icon" style="height:1em;" />
{{ f.type_str() }})
</label> </label>
</div> </div>
{% endfor %} {% endfor %}

View File

@ -26,7 +26,7 @@
<tbody> <tbody>
{% for f in user.two_factor %} {% for f in user.two_factor %}
<tr id="factor-{{ f.id.0 }}"> <tr id="factor-{{ f.id.0 }}">
<td>{{ f.type_str() }}</td> <td><img src="{{ f.type_image() }}" alt="Factor icon" style="height: 1.5em; margin-right: 0.5em;" />{{ f.type_str() }}</td>
<td>{{ f.name }}</td> <td>{{ f.name }}</td>
<td><a href="javascript:delete_factor('{{ f.id.0 }}');">Delete</a></td> <td><a href="javascript:delete_factor('{{ f.id.0 }}');">Delete</a></td>
</tr> </tr>