Skip to content
Snippets Groups Projects
Commit 27ff89a8 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

remove addEmailToAccount from exports. in db, it's not used outside the module

parent be238b68
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ function generateSecret() { ...@@ -117,7 +117,7 @@ function generateSecret() {
return str; return str;
} }
exports.addEmailToAccount = function(existing_email, email, pubkey, cb) { function addEmailToAccount(existing_email, email, pubkey, cb) {
emailToUserID(existing_email, function(userID) { emailToUserID(existing_email, function(userID) {
if (userID == undefined) { if (userID == undefined) {
cb("no such email: " + existing_email, undefined); cb("no such email: " + existing_email, undefined);
...@@ -245,7 +245,7 @@ exports.gotVerificationSecret = function(secret, cb) { ...@@ -245,7 +245,7 @@ exports.gotVerificationSecret = function(secret, cb) {
} else if (o.type === 'add_email') { } else if (o.type === 'add_email') {
exports.emailKnown(o.email, function(known) { exports.emailKnown(o.email, function(known) {
function addIt() { function addIt() {
exports.addEmailToAccount(o.existing_email, o.email, o.pubkey, cb); addEmailToAccount(o.existing_email, o.email, o.pubkey, cb);
} }
if (known) { if (known) {
exports.removeEmail(o.email, o.email, function (err) { exports.removeEmail(o.email, o.email, function (err) {
......
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