Remove commented code
This commit is contained in:
parent
8b8c93d23e
commit
7684687dbc
1 changed files with 0 additions and 9 deletions
|
@ -192,15 +192,6 @@ class UserHostingKeyForm(forms.ModelForm):
|
|||
KEY_ERROR_MESSAGE = _("Please input a proper SSH key")
|
||||
openssh_pubkey_str = self.data.get('public_key').strip()
|
||||
|
||||
# if openssh_pubkey_str in get_all_public_keys(self.request.user):
|
||||
# key_name = UserHostingKey.objects.filter(
|
||||
# user_id=self.request.user.id,
|
||||
# public_key=openssh_pubkey_str).first().name
|
||||
# KEY_EXISTS_MESSAGE = _(
|
||||
# "This key exists already with the name \"%(name)s\"") % {
|
||||
# 'name': key_name}
|
||||
# raise forms.ValidationError(KEY_EXISTS_MESSAGE)
|
||||
|
||||
with tempfile.NamedTemporaryFile(delete=True) as tmp_public_key_file:
|
||||
tmp_public_key_file.write(openssh_pubkey_str.encode('utf-8'))
|
||||
tmp_public_key_file.flush()
|
||||
|
|
Loading…
Reference in a new issue