mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-22 20:44:55 +00:00
web/postkey/views.py: remove hash uniqueness check
Not needed until it moved into validation.py
This commit is contained in:
parent
798d5cb2a7
commit
dd498acf04
@ -30,10 +30,6 @@ class AddForm(ModelForm):
|
||||
"""Validate base64 hash"""
|
||||
data = self.cleaned_data['b64hash']
|
||||
data = validate_b64hash(data)
|
||||
# Avoid adding non-unique hashes
|
||||
qs = i2phost.objects.filter(b64hash=data)
|
||||
if qs.exists():
|
||||
raise forms.ValidationError('Base64 hash must be unique')
|
||||
return data
|
||||
|
||||
def addkey(request):
|
||||
|
Loading…
x
Reference in New Issue
Block a user