Search code examples
meteoriron-routermeteor-accounts

Where is template atSignIn defined?


I downloaded a Meteor Starter project called MeteorAdmin.

This project is using meteor-usersaccounts package and there's this code {{pathFor route='atSignIn'}} in one of the html files.

atSignIn is not defined anywhere, I suspect it being defines in useraccounts package but can't find it, anyone has an idea?


Solution

  • Lines 45-56 of this file.

    // Allowed routes along with theirs default configuration values
    AccountsTemplates.ROUTE_DEFAULT = {
      changePwd:      { name: "atChangePwd",      path: "/change-password"},
      enrollAccount:  { name: "atEnrollAccount",  path: "/enroll-account"},
      ensureSignedIn: { name: "atEnsureSignedIn", path: null},
      forgotPwd:      { name: "atForgotPwd",      path: "/forgot-password"},
      resetPwd:       { name: "atResetPwd",       path: "/reset-password"},
      signIn:         { name: "atSignIn",         path: "/sign-in"},
      signUp:         { name: "atSignUp",         path: "/sign-up"},
      verifyEmail:    { name: "atVerifyEmail",    path: "/verify-email"},
      resendVerificationEmail: { name: "atResendVerificationEmail", path: "/send-again"}
    };