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

Updating merged portions for new namespace.

parent 8521b68f
No related branches found
No related tags found
No related merge requests found
/*globals BrowserID: true, BrowserIDNetwork: true, $:true */
/*globals BrowserID: true, $:true */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
......@@ -53,7 +53,7 @@ BrowserID.forgot = (function() {
return false;
}
BrowserIDIdentities.createUser(email, function onSuccess(keypair) {
BrowserID.Identities.createUser(email, function onSuccess(keypair) {
$('#sent_to_email').html(email);
$('#forminputs').fadeOut();
$(".notifications .notification.emailsent").fadeIn();
......
......@@ -37,7 +37,9 @@
(function() {
"use strict";
BrowserID.verifyEmailAddress = function(token) {
var bid = BrowserID;
bid.verifyEmailAddress = function(token) {
$("#signUpForm").submit(function(event) {
event.preventDefault();
......@@ -46,7 +48,7 @@
pass2 = $("#vpassword").val();
if (pass && pass === pass2) {
BrowserID.Network.completeUserRegistration(token, pass, function onSuccess(registered) {
bid.Network.completeUserRegistration(token, pass, function onSuccess(registered) {
if (registered) {
$("#congrats").fadeIn(250);
}
......@@ -56,7 +58,7 @@
}
});
var staged = BrowserIDStorage.getStagedOnBehalfOf();
var staged = bid.Storage.getStagedOnBehalfOf();
if (staged) {
$('.website').html(staged);
}
......@@ -65,7 +67,7 @@
}
// go get the email address
BrowserIDNetwork.emailForVerificationToken(token, function(email) {
bid.Network.emailForVerificationToken(token, function(email) {
if (email) {
$('#email').val(email);
}
......
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