From a08104ba2c1c4d4cbc78eeba3c8560950ab41adf Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Wed, 13 Sep 2017 14:31:13 +0200 Subject: [PATCH] Updated a comment --- hosting/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosting/forms.py b/hosting/forms.py index 2ebc6f48..f6d9b4d0 100644 --- a/hosting/forms.py +++ b/hosting/forms.py @@ -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: