diff --git a/lib/_config/_config.js b/lib/_config/_config.js index a8a90ec6ee..738fae1b6b 100644 --- a/lib/_config/_config.js +++ b/lib/_config/_config.js @@ -1,5 +1,6 @@ Config = { name: 'Apinf', + domain: "apinf.io", // How to get this from settings? logoImage: '', title: function() { return TAPi18n.__('configTitle'); diff --git a/lib/_config/accounts.js b/lib/_config/accounts.js index 073292a306..022928a411 100644 --- a/lib/_config/accounts.js +++ b/lib/_config/accounts.js @@ -3,7 +3,7 @@ AccountsTemplates.configure({ enablePasswordChange: true, forbidClientAccountCreation: false, overrideLoginErrors: true, - sendVerificationEmail: false, + sendVerificationEmail: true, lowercaseUsername: false, showAddRemoveServices: true, showForgotPasswordLink: true, diff --git a/lib/_config/emails.js b/lib/_config/emails.js index b6e8190b38..4203745364 100644 --- a/lib/_config/emails.js +++ b/lib/_config/emails.js @@ -4,6 +4,10 @@ if (Meteor.isServer) { options = { siteName: Config.name }; + // Configurations for activation email template + Accounts.emailTemplates.siteName = Config.name; + Accounts.emailTemplates.from = Config.name+" "; + if (Config.socialMedia) { _.each(Config.socialMedia, function(v, k) { return options[k] = v.url; diff --git a/server/accounts.js b/server/accounts.js index ef71084159..c9496adb57 100644 --- a/server/accounts.js +++ b/server/accounts.js @@ -36,7 +36,6 @@ Accounts.onCreateUser(function(options, user) { user.apiUmbrellaUserId = response.data.user.id; user.profile.apiKey = response.data.user.api_key; ApiUmbrellaUsers.insert(response.data.user); - Meteor.call("sendmail", user.emails[0].address); return user; }); diff --git a/server/methods/sendmail.js b/server/methods/sendmail.js deleted file mode 100644 index a29c0ed961..0000000000 --- a/server/methods/sendmail.js +++ /dev/null @@ -1,15 +0,0 @@ -Meteor.methods({ - - "sendmail": function(to) { - var to = to, - from = "register@apinf.io"; - - Email.send({ - from: from, - to: to, - subject: "Registration complete ", - text: "Welcome to Apinf. Enjoy your stay in the world of APIs." - }); - } - -});