Removed some unreachable code from utils/forms.py

This commit is contained in:
PCoder 2017-07-16 16:35:02 +05:30
parent b67a12f01b
commit a37464f8b3

View file

@ -50,8 +50,6 @@ class LoginFormMixin(forms.Form):
return email
except CustomUser.DoesNotExist:
raise forms.ValidationError("User does not exist")
else:
return email
class PasswordResetRequestForm(forms.Form):
@ -67,8 +65,6 @@ class PasswordResetRequestForm(forms.Form):
return email
except CustomUser.DoesNotExist:
raise forms.ValidationError("User does not exist")
else:
return email
class SetPasswordForm(forms.Form):