From 45bc5ead06d3222e07ed780c6c2614e6ed27c9b0 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 31 Oct 2016 12:30:50 -0400 Subject: [PATCH] Closes #652: Use password input controls when editing secrets --- netbox/secrets/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/secrets/forms.py b/netbox/secrets/forms.py index 7eb9e816af3..3f3d397a378 100644 --- a/netbox/secrets/forms.py +++ b/netbox/secrets/forms.py @@ -49,8 +49,9 @@ class Meta: class SecretForm(forms.ModelForm, BootstrapMixin): private_key = forms.CharField(required=False, widget=forms.HiddenInput()) plaintext = forms.CharField(max_length=65535, required=False, label='Plaintext', - widget=forms.TextInput(attrs={'class': 'requires-private-key'})) - plaintext2 = forms.CharField(max_length=65535, required=False, label='Plaintext (verify)') + widget=forms.PasswordInput(attrs={'class': 'requires-private-key'})) + plaintext2 = forms.CharField(max_length=65535, required=False, label='Plaintext (verify)', + widget=forms.PasswordInput()) class Meta: model = Secret