Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from hkarpf/master
Browse files Browse the repository at this point in the history
This is fine for now. The logic will change a bit after changes to make user,email unique together to address issue #10. But, I think this is right, we don't want to allow unverified addresses to be set to primary.
  • Loading branch information
Scott Bradley committed May 28, 2015
2 parents 0cfb768 + ab97235 commit 5449e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multimail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def set_as_primary(request, email_pk):
messages.error(request, 'Email %s needs to be verified first.' % email)
if email.user != request.user:
messages.error(request, 'Invalid request.')
else:
elif email.is_verified():
email.set_primary()
messages.success(
request, '%s is now marked as your primary email address.' % email
Expand Down

0 comments on commit 5449e78

Please sign in to comment.