From ebccb2de90a6886142a4c75980603a48eb481725 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Wed, 8 Jul 2015 19:05:51 +0530 Subject: add login through github, other various UI changes --- website/forms.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'website/forms.py') diff --git a/website/forms.py b/website/forms.py index da48647..fc828f8 100644 --- a/website/forms.py +++ b/website/forms.py @@ -40,11 +40,3 @@ class UserLoginForm(forms.Form): widget=forms.PasswordInput(attrs={'class': 'form-control', 'placeholder': 'Password'}), label='' ) - def clean(self): - super(UserLoginForm, self).clean() - u_name, pwd = self.cleaned_data["username"],\ - self.cleaned_data["password"] - user = authenticate(username=u_name, password=pwd) - if not user: - raise forms.ValidationError("Invalid username/password") - return user -- cgit