Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Conversation

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Apr 25, 2017

Fixes #4756

Reopening for docker stuff feature.add-additional-email branch name / tag

TODO

DONE

  • “Add” button should be blue in settings

  • The Secondary email section should always be open if the secondary email is not verified

  • The section should say “cancel” instead of done

  • Emails have wrong footer compared to the mock up from Ryan:

    1. undefined in email: in the verify secondary email template we have <a undefined>please change your password.</a>
    2. FOR NOW: leave that in, DO NOT Follow the Invision design (do not add "intruders")
    3. FOR LATER: discuss unsubscribe (the flow confusing for that).
  • Customs configs on docker builds-> We need to disable customs on emails3.dev.lcip.org

  • IP_PROFILE need to disable it on emails3.dev.lcip.org

  • input placeholder is wrong in the secondary email section

  • In the email: please change password link doesn’t link. check footer of the email in the design. That link is not there. See Above

  • Always enable “Refresh” button

  • Delete account didn’t delete the secondary email

  • DONE button should be grey if email is waiting to be verified.

  • Should reset password -> send to secondary?

    1. You should get an error for now, you have to put your PRIMARY EMAIL in the field.
  • remind Ryan F: "need to make an error for users trying to register a with secondary email" // review all new errors with Ryan F.

  • MINOR: verification link says “Damaged” when verifying after some other user took the email... Should it say "Expired" ?

@vladikoff
Copy link
Contributor Author

@vladikoff
Copy link
Contributor Author

@vbudhram If I try to Reset Account then I get Unknown Account (even if I have that email verified as secondary email):

vladikoff pushed a commit to mozilla/fxa-auth-server that referenced this pull request May 1, 2017
…condary email (#1874) r=vladikoff

This PR fixes mozilla/fxa-content-server#4996 (comment) by sending a unique error if a user is attempting to reset an account from a secondary email.
@vladikoff vladikoff reopened this May 2, 2017
@vladikoff vladikoff force-pushed the feature.add-additional-email branch from b80a6b8 to 6a6c5c6 Compare May 2, 2017 02:03
@vladikoff
Copy link
Contributor Author

The Update Branch button got itself into conflicts. I had to rebase this branch from scratch and remove merge commits. let's not use the "Update branch" button at least in this branch for now. It creates bad merge commits that later cannot be rebased.


var Email = Backbone.Model.extend({
defaults: {
email: undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to use null like other files in models/

// Return a promise delayed by ms
function delay(ms) {
var deferred = p.defer();
setTimeout(deferred.resolve, ms);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other files use this.setTimeout or use the timer-mixin. we need to add that

},

displaySuccess (msg) {
displaySuccess (msg, options = { closePanel: true}) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit : style near clonePanel

headerTitle: t('Account verified'),
readyToSyncText: t('You are now ready to use %(serviceName)s')
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove dangling comma

const account = this.getSignedInAccount();
return account.resendEmailCode(email)
.then(() => {
this.displaySuccess(t('Verification emailed to ') + email, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not gonna work, this needs to string interpolate the translate string

const account = this.getSignedInAccount();
return account.recoveryEmailCreate(newEmail)
.then(() => {
this.displaySuccess(t('Verification emailed to ') + newEmail, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not gonna work, this needs to string interpolate the translate string

@vladikoff
Copy link
Contributor Author

vladikoff commented May 3, 2017

Moved the comment up

errno: 136,
message: t('This email was already verified by another user')
},
EMAIL_DELETE_PRIMARY: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from mtg: we probably do not need this one

},
SESSION_UNVERIFIED: {
errno: 138,
message: t('Unable to perform action, unverified session')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also might not need this in the content-server, just like https://github.com/mozilla/fxa-content-server/pull/4996/files#r115769238 . At least we can remove the translation bit.

},
SECONDARY_EMAIL_UNKNOWN: {
errno: 143,
message: t('Cannot use this email to sign in')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to check this one, is this user facing? from mtg: it should probably say 'Primary account email required for sign-in'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, looks like it is not user facing. Will remove 👍

},
RESET_PASSWORD_WITH_SECONDARY_EMAIL: {
errno: 145,
message: t('Reset with this email type is not currently supported. Use the primary email of this account')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to change: 'Primary account email required for reset'

@vladikoff vladikoff force-pushed the feature.add-additional-email branch from 90fd10d to bc917b6 Compare May 15, 2017 13:45
): remove bad rebase issue
Copy link

@shane-tomlinson shane-tomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small comments, nothing major.

},
EMAIL_VERIFIED_PRIMARY_EXISTS: {
errno: 140,
message: t('Account already exists')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this and the next error have different strings so we can differentiate in Sentry?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentry has the errno AFAIK

},
VERIFIED_SECONDARY_EMAIL_EXISTS: {
errno: 144,
message: t('Address in use by another account')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between this and # 136?

<div class="address">{{email}}</div>
<div class="details">
{{#verified}}
<div class="verified"> {{#t}}verified{{/t}}</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want the extra space in front of the {?

this.displaySuccess(Strings.interpolate(t('Verification emailed to %(email)s'), { email: email }), {
closePanel: false
});
this.render();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to render if you are immediately navigating?

const account = this.getSignedInAccount();
return account.resendEmailCode(email)
.then(() => {
this.displaySuccess(Strings.interpolate(t('Verification emailed to %(email)s'), { email: email }), {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally find this string slightly confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shane-tomlinson what do you mean? the wording?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shane-tomlinson what do you mean? the wording?

Verification emailed to...

When sending a signup email, we say:

A verification link has been sent to %(escapedEmail)s

@vladikoff vladikoff merged commit 314e593 into master May 15, 2017
@vbudhram vbudhram deleted the feature.add-additional-email branch August 2, 2017 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants