Skip to content

Commit

Permalink
at least != greater than
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalse committed Feb 4, 2025
1 parent 3c4445d commit 39af9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edumanage/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def clean_psk_key(self):
proto = self.cleaned_data['proto']
if proto in RADPROTOS.TLSPSK:
if psk_key:
if len(psk_key) > 16:
if len(psk_key) >= 16:
return self.cleaned_data["psk_key"]
else:
raise forms.ValidationError(_('The PSK Key must be at least 16 octets (draft-ietf-radext-tls-psk-11)'))
Expand Down Expand Up @@ -391,4 +391,4 @@ def clean_server_name(self):
raise forms.ValidationError(error_text)
else:
raise forms.ValidationError(_('This field is required.'))
return self.cleaned_data["server_name"]
return self.cleaned_data["server_name"]

0 comments on commit 39af9b0

Please sign in to comment.