Skip to content

Commit

Permalink
Merge pull request #1646 from mstriemer/validate-email-before-fxa-red…
Browse files Browse the repository at this point in the history
…irect-1637

Require email to look like an email on login form (fixes #1637)
  • Loading branch information
mstriemer committed Feb 9, 2016
2 parents 5959732 + f97ed00 commit 535d289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/olympia/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
BlacklistedPassword)
from .widgets import (
NotificationsSelectMultiple, RequiredEmailInput, RequiredInputMixin,
RequiredTextarea, RequiredTextInput)
RequiredTextarea)


log = commonware.log.getLogger('z.users')
Expand Down Expand Up @@ -65,7 +65,7 @@ def clean_password(self, field='password', instance='instance'):


class AuthenticationForm(auth_forms.AuthenticationForm):
username = forms.CharField(max_length=75, widget=RequiredTextInput)
username = forms.CharField(max_length=75, widget=RequiredEmailInput)
password = forms.CharField(max_length=255,
min_length=PasswordMixin.min_length,
error_messages=PasswordMixin.error_msg,
Expand Down

0 comments on commit 535d289

Please sign in to comment.