Skip to content

Commit

Permalink
Closes netbox-community#652: Use password input controls when editing…
Browse files Browse the repository at this point in the history
… secrets
  • Loading branch information
jeremystretch committed Oct 31, 2016
1 parent baaebcc commit 45bc5ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox/secrets/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45bc5ea

Please sign in to comment.