Skip to content

awatson1978/deprecated-clinical-active-entry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photonic:active-entry

Part of the clinical:multiactor package collection. This package provides the SignIn, SignUp, and ForgotPassword pages.

Installation

meteor add photonic:active-entry

Routing API

/entrySignIn
/entrySignUp
/forgotPassword

Component API

{{> entrySignIn }}
{{> entrySignUp }}
{{> forgotPassword }}

===============================

ActiveEntry Configuration

if(Meteor.isClient){
  ActiveEntry.configure({
    logo: {
      url: "/mini-circles.png",
      displayed: true
    },
    signIn: {
      displayFullName: true,
      destination: "/table/users"
    },
    signUp: {
      destination: "/table/users"
    },
    themeColors: {
      primary: ""
    }
  });
}

if(Meteor.isServer){
  Accounts.emailTemplates.siteName = "AwesomeSite";
  Accounts.emailTemplates.from = "AwesomeSite Admin <accounts@example.com>";
  Accounts.emailTemplates.enrollAccount.subject = function (user) {
      return "Welcome to Awesome Town, " + user.profile.name;
  };
  Accounts.emailTemplates.enrollAccount.text = function (user, url) {
     return "You have been selected to participate in building a better future!"
       + " To activate your account, simply click the link below:\n\n"
       + url;
  };  

  Meteor.startup(function(){
    process.env.MAIL_URL = 'smtp://sandboxid.mailgun.org:mypassword@smtp.mailgun.org:587';
  })  
}

Alternatively, you may want to set the MAIL_URL via an external environment variable, particularly if you're using a SaaS hosting provider.

MAIL_URL = 'smtp://sandboxid.mailgun.org:mypassword@smtp.mailgun.org:587' meteor

Quality Assurance

===============================

Licensing

MIT. Use as you will. Disrupt the current system. It needs all the help it can get.

About

SignIn, SignUp, and ForgotPassword pages for Clinical Framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published