Router.configure({
  layoutTemplate: 'mainLayout'
});

/*
  Actions
*/

var requiresUserLogin = function () {
  if (!Meteor.user()) {
    this.render('login');
  } else {
    this.next();
  }
};

// User login required for all areas of site
Router.onBeforeAction(requiresUserLogin, {except: ['login']});

@@ -193,112 +193,296 @@
 %7D;%0A%0A
-// User login required for all areas of site%0ARouter.onBeforeAction(requiresUserLogin, %7Bexcept: %5B'login'%5D
+var anonymousRoutes = %5B%0A  'login',%0A  'atChangePwd',%0A  'atEnrollAccount',%0A  'atForgotPwd',%0A  'atResetPwd',%0A  'atSignIn',%0A  'atSignUp',%0A  'atVerifyEmail',%0A  'atresendVerificationEmail'%0A%5D;%0A%0A// User login required for all areas of site%0ARouter.plugin('ensureSignedIn', %7Bexcept: anonymousRoutes
 %7D);%0A

Exclude AccountsTemplates routes in ensureSignedIn