summaryrefslogtreecommitdiff
path: root/website/forms.py
diff options
context:
space:
mode:
authorhardythe12015-07-08 19:05:51 +0530
committerhardythe12015-07-08 19:05:51 +0530
commitebccb2de90a6886142a4c75980603a48eb481725 (patch)
tree5e17b44b269b0d6448c3cefe46a9dfdfc52d0a92 /website/forms.py
parentd34a650ba5c65217c68451e4eb78b4919a7c7b03 (diff)
downloadSciPy2015-ebccb2de90a6886142a4c75980603a48eb481725.tar.gz
SciPy2015-ebccb2de90a6886142a4c75980603a48eb481725.tar.bz2
SciPy2015-ebccb2de90a6886142a4c75980603a48eb481725.zip
add login through github, other various UI changes
Diffstat (limited to 'website/forms.py')
-rw-r--r--website/forms.py8
1 files changed, 0 insertions, 8 deletions
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