1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #11623: obfuscate Wi-Fi PSKs (#12244)

* Fixes #11623: obfuscate Wi-Fi PSKs

* yarn linting fixes

* include static files
This commit is contained in:
Austin de Coup-Crank
2023-04-24 11:13:28 -05:00
committed by GitHub
parent b693123f6e
commit adb9673f09
8 changed files with 110 additions and 10 deletions

View File

@@ -14,7 +14,12 @@
</tr>
<tr>
<th scope="row">PSK</th>
<td class="font-monospace">{{ object.auth_psk|placeholder }}</td>
<td>
<span id="secret" class="font-monospace" data-secret="{{ object.auth_psk }}">{{ object.auth_psk|placeholder }}</span>
{% if object.auth_psk %}
<button type="button" class="btn btn-sm btn-primary toggle-secret float-end" data-bs-toggle="button">Show Secret</button>
{% endif %}
</td>
</tr>
</table>
</div>