Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/_config/_config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Config = {
name: 'Apinf',
domain: "apinf.io", // How to get this from settings?
logoImage: '<img src="/img/logo.png" width="130px;" />',
title: function() {
return TAPi18n.__('configTitle');
Expand Down
2 changes: 1 addition & 1 deletion lib/_config/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AccountsTemplates.configure({
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
sendVerificationEmail: true,
lowercaseUsername: false,
showAddRemoveServices: true,
showForgotPasswordLink: true,
Expand Down
4 changes: 4 additions & 0 deletions lib/_config/emails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+" <no-reply@"+Config.domain+">";

if (Config.socialMedia) {
_.each(Config.socialMedia, function(v, k) {
return options[k] = v.url;
Expand Down
3 changes: 2 additions & 1 deletion server/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ 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);
// Using Meteor Accounts email verification, so we don't need to say this below.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead and remove these comments and the Meteor method 'sendmail'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Go ahead and merge to develop, if it looks alright now.

//Meteor.call("sendmail", user.emails[0].address);

return user;
});
Expand Down