-
Notifications
You must be signed in to change notification settings - Fork 329
Re-add multiple emails in mozillians.org #1566
Conversation
f15380a
to
fcd7599
Compare
fcd7599
to
960cb88
Compare
ExternalAccount.objects.create(type=account_type, | ||
user=request_user.userprofile, | ||
identifier=email) | ||
return [request_user] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to return a qs instead of a list with an object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we already have the object, I would prefer not to hit the db just to create a QS
eq_(len(returned_user), 1) | ||
eq_(returned_user[0], user) | ||
|
||
def test_email_already_exists(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to have the same test but using the primary email instead? To test both cases.
|
||
<!-- Add a new email --> | ||
<div id="add-email"> | ||
<a id="nav-login" title="{{_('Add email using Auth0')}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since users don't really know/care that we are using auth0 (its mozilla branded anyway) I suggest we use something like Add email
.
960cb88
to
8d82a62
Compare
tested locally:
|
No description provided.