mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Fixes #11623: obfuscate Wi-Fi PSKs * yarn linting fixes * include static files
This commit is contained in:
committed by
GitHub
parent
b693123f6e
commit
adb9673f09
@ -1,3 +1,4 @@
|
||||
from django.forms import PasswordInput
|
||||
from django.utils.translation import gettext as _
|
||||
from dcim.models import Device, Interface, Location, Region, Site, SiteGroup
|
||||
from ipam.models import VLAN, VLANGroup
|
||||
@ -101,6 +102,10 @@ class WirelessLANForm(TenancyForm, NetBoxModelForm):
|
||||
'status': StaticSelect,
|
||||
'auth_type': StaticSelect,
|
||||
'auth_cipher': StaticSelect,
|
||||
'auth_psk': PasswordInput(
|
||||
render_value=True,
|
||||
attrs={'data-toggle': 'password'}
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@ -206,6 +211,10 @@ class WirelessLinkForm(TenancyForm, NetBoxModelForm):
|
||||
'status': StaticSelect,
|
||||
'auth_type': StaticSelect,
|
||||
'auth_cipher': StaticSelect,
|
||||
'auth_psk': PasswordInput(
|
||||
render_value=True,
|
||||
attrs={'data-toggle': 'password'}
|
||||
),
|
||||
}
|
||||
labels = {
|
||||
'auth_type': 'Type',
|
||||
|
Reference in New Issue
Block a user