From 4ce914b1780011ba56d43ee1ca6b9228bcd7304e Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 13 Sep 2017 01:11:25 +0530 Subject: [PATCH] Removed some code that was not used --- hosting/forms.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hosting/forms.py b/hosting/forms.py index 64de0276..464e2059 100644 --- a/hosting/forms.py +++ b/hosting/forms.py @@ -1,13 +1,9 @@ -import base64 import datetime import logging -import struct from django import forms from django.contrib.auth import authenticate from django.utils.translation import ugettext_lazy as _ -from sshpubkeys import SSHKey -from sshpubkeys.exceptions import InvalidKeyException from membership.models import CustomUser from .models import UserHostingKey @@ -46,8 +42,6 @@ class HostingUserLoginForm(forms.Form): return email except CustomUser.DoesNotExist: raise forms.ValidationError(_("User does not exist")) - else: - return email class HostingUserSignupForm(forms.ModelForm):