Skip to content

Commit

Permalink
Merge pull request #46 from frwickst/email-regex
Browse files Browse the repository at this point in the history
Use a more liberal/naive approach to regex checking for an email
  • Loading branch information
walterrenner committed Mar 9, 2015
2 parents 0e4ca5a + 7feb7ee commit 30c69c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hijack/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

if not hijacking_user_attributes or 'email' in hijacking_user_attributes:
urlpatterns += patterns('hijack.views',
url(r'^email/(?P<email>[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4})/$', 'login_with_email', name='login_with_email')
url(r'^email/(?P<email>[^@]+@[^@]+\.[^@]+)/$', 'login_with_email', name='login_with_email')
)
if not hijacking_user_attributes or 'username' in hijacking_user_attributes:
urlpatterns += patterns('hijack.views',
Expand Down

0 comments on commit 30c69c3

Please sign in to comment.