Skip to content

Commit

Permalink
lower email address upon entering
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed May 30, 2017
1 parent 52eb6e4 commit 3597a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def email_add(request):
user = get_object_or_404(User, username=request.POST.get("username"))
email = request.POST.get("email")
if email:
e = EmailAddress(user=user, email=email)
e = EmailAddress(user=user, email=email.lower())
e.save(verify=True)
if 'HTTP_REFERER' in request.META:
return redirect(request.META['HTTP_REFERER'])
Expand Down

0 comments on commit 3597a8f

Please sign in to comment.