Skip to content
This repository has been archived by the owner. It is now read-only.

email confirmation flow. #195

Merged
merged 1 commit into from Jan 9, 2014
Merged

Conversation

@shane-tomlinson
Copy link
Member

@shane-tomlinson shane-tomlinson commented Jan 8, 2014

Details to work out still:

  • - Do the verification
  • - Error handling
  • - In functional tests, get real token/uid to complete verification.

Link to #194

},

initialize: function() {
setTimeout(function() {

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 8, 2014
Author Member

This is temporary.

// TODO - maybe make a light wrapper around Gherkin that takes care
// of this?
var client = new gherkin.Client(Constants.FXA_ACCOUNT_SERVER);
client.verifyEmail(uid);

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 8, 2014
Author Member

This is sending null for the uid field when making the request to the backend and placing uid into the code field. mmm..

@@ -99,3 +99,7 @@ a.button:hover, button:hover {
float: right;
width: 75%;
}

#fxa-complete-sign-up-success {

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 8, 2014
Author Member

@nchapman - think we should we start with a generic .hidden class?

This comment has been minimized.

@nchapman

nchapman Jan 9, 2014
Contributor

Let's leave it for now. I'm torn about doing utility classes like that. I'll figure out something consistent in my visual styling branch.

},

initialize: function() {
setTimeout(function() {

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 8, 2014
Author Member

The setTimeout is necessary to actually get the error message into the element, I need to understand how backbone pieces fit together better.

This comment has been minimized.

@nchapman

nchapman Jan 8, 2014
Contributor

It's because the content hasn't been rendered at that point. I have it setup so that it calls afterRender if that function exists in the view, so you can move that in there and it should work properly.

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 8, 2014
Author Member

Awesome, I'll update this then.

@shane-tomlinson
Copy link
Member Author

@shane-tomlinson shane-tomlinson commented Jan 9, 2014

This depends on #204 and should be merged afterwards.

* Fetch the code, uid, and service from the URL search string.
* Handle errors
* In the create_account screen, only attempt to create an account if both email and password are available.
* rename tests/functional/signIn.js => sign_in.js and signUp.js => sign_up.js for consistency.
@shane-tomlinson
Copy link
Member Author

@shane-tomlinson shane-tomlinson commented Jan 9, 2014

@nchapman - this one is ready for you now! #204 is merged.

@nchapman
Copy link
Contributor

@nchapman nchapman commented Jan 9, 2014

On it!

@nchapman
Copy link
Contributor

@nchapman nchapman commented Jan 9, 2014

Held up on npm issues. I'll get to it as soon as npm is happy again.

@nchapman
Copy link
Contributor

@nchapman nchapman commented Jan 9, 2014

Looks good!

nchapman added a commit that referenced this pull request Jan 9, 2014
@nchapman nchapman merged commit 13dba5b into develop Jan 9, 2014
1 check failed
1 check failed
@rik
default The Travis CI build could not complete due to an error
Details
@nchapman nchapman deleted the issue-194-email-verification-screens branch Jan 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants