Skip to content
Snippets Groups Projects
Commit d3dee2f7 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Fixing a problem where new email addresses added to an existing account would...

Fixing a problem where new email addresses added to an existing account would not get synced correctly directly after confirmation.
parent 34395710
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,12 @@ var BrowserIDIdentities = (function() {
* @param {function} [onFailure] - Called on error.
*/
addIdentity: function(email, onSuccess, onFailure) {
var keypair = CryptoStubs.genKeyPair();
var self=this,
keypair = CryptoStubs.genKeyPair();
self.stagedEmail = email;
self.stagedKeypair = keypair;
BrowserIDNetwork.addEmail(email, keypair, function() {
if(onSuccess) {
onSuccess(keypair);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment