Updated a comment
This commit is contained in:
parent
f0d0f2abcc
commit
a08104ba2c
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
import datetime
|
||||
import logging
|
||||
import subprocess
|
||||
import tempfile
|
||||
|
||||
import tempfile
|
||||
from django import forms
|
||||
from django.contrib.auth import authenticate
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
@ -88,7 +88,9 @@ class UserHostingKeyForm(forms.ModelForm):
|
|||
|
||||
def clean_public_key(self):
|
||||
"""
|
||||
A function that validates a public ssh key using ssh-keygen
|
||||
Validates a public ssh key using `ssh-keygen -lf key.pub`
|
||||
Also checks if a given key already exists in the database and
|
||||
alerts the user of it.
|
||||
:return:
|
||||
"""
|
||||
if 'generate' in self.request.POST:
|
||||
|
|
Loading…
Reference in a new issue