reviewed changes

This commit is contained in:
ARvind Tiwari 2017-08-03 22:00:41 +05:30
commit 0993d8c106
7 changed files with 41 additions and 206 deletions

View file

@ -27,7 +27,7 @@ class HostingUserLoginForm(forms.Form):
is_auth = authenticate(email=email, password=password)
if not is_auth:
raise forms.ValidationError(
"Your username and/or password were incorrect.")
_("Your username and/or password were incorrect."))
elif is_auth.validated == 0:
raise forms.ValidationError(
_("Your account is not activated yet."))