Skip to content

Sign-in and registration template

Sign-in form, registration panel and verification resend.

Output: page body inside the storefront layout.

Shared structures available in recorded contexts: shop, branding, theme, urls, page, navigation, languageSwitcher, currencySwitcher, headerActionContributions, labels, security, footer, cartPreview, accountHeader.

viewModel.account.auth.labels uses the account-label structure.

Field Type Meaning Availability
viewModel.account object Account data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth object Auth data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth.activeView string Active view value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.canRegister boolean or 0/1 Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. When the authentication or registration model is provided.
viewModel.account.auth.companyCustomFieldGroups array Prepared company custom field groups collection; may be empty. When the parent is provided; check optional fields.
viewModel.account.auth.errors array Prepared errors collection; may be empty. When the parent is provided; check optional fields.
viewModel.account.auth.focusTarget string Focus target value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form object Form data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth.form.companyName string Company name value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form.firstName string First name value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form.lastName string Last name value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form.loginEmail string Login email value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form.newsletterOptIn boolean Whether newsletter opt in applies; use for display only. When the parent is provided; check optional fields.
viewModel.account.auth.form.registerAsCompany boolean Whether register as company applies; use for display only. When the parent is provided; check optional fields.
viewModel.account.auth.form.registerEmail string Register email value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.form.returnUrl string Prepared return URL; use unchanged. When the parent is provided; check optional fields.
viewModel.account.auth.form.salutationId number salutation identifier; do not load data with it. When the parent is provided; check optional fields.
viewModel.account.auth.hasErrors boolean Whether errors applies; use for display only. When the parent is provided; check optional fields.
viewModel.account.auth.intro string Intro value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.labels object Labels data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth.loginSubmitUrl string Prepared login submit URL; use unchanged. When the parent is provided; check optional fields.
viewModel.account.auth.passwordResetUrl string Prepared password reset URL; use unchanged. When the parent is provided; check optional fields.
viewModel.account.auth.registerSubmitUrl string Prepared register submit URL; use unchanged. When the parent is provided; check optional fields.
viewModel.account.auth.registerUrl string Prepared register URL; use unchanged. When the parent is provided; check optional fields.
viewModel.account.auth.salutationOptions array Prepared salutation options collection; may be empty. When the parent is provided; check optional fields.
viewModel.account.auth.salutationOptions[].label string Label value supplied for this context. For each existing item; optional child fields depend on item type.
viewModel.account.auth.salutationOptions[].salutationId number salutation identifier; do not load data with it. For each existing item; optional child fields depend on item type.
viewModel.account.auth.showCompanyRegistration boolean or 0/1 Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. When the authentication or registration model is provided.
viewModel.account.auth.showNewsletterOptIn boolean or 0/1 Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. When the authentication or registration model is provided.
viewModel.account.auth.title string Title value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend object Verification resend data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.canResend boolean Whether resend applies; use for display only. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.email string Email value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.emailLabel string Prepared email display text. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.hasNotice boolean Whether notice applies; use for display only. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.notice object Notice data; check child fields before use. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.notice.message string Message value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.notice.type string Type value supplied for this context. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.submitLabel string Prepared submit display text. When the parent is provided; check optional fields.
viewModel.account.auth.verificationResend.submitUrl string Prepared submit URL; use unchanged. When the parent is provided; check optional fields.
viewModel.search object Search data; check child fields before use. When the parent is provided; check optional fields.
viewModel.search.isEnabled boolean Whether enabled applies; use for display only. When the parent is provided; check optional fields.
viewModel.wishlist object Wishlist data; check child fields before use. When the parent is provided; check optional fields.
viewModel.wishlist.isEmpty boolean Whether empty applies; use for display only. When the parent is provided; check optional fields.
viewModel.wishlist.itemCount number Item count numeric value. When the parent is provided; check optional fields.
viewModel.wishlist.items array Prepared items collection; may be empty. When the parent is provided; check optional fields.
viewModel.wishlist.productIdMap object Product id map data; check child fields before use. When the parent is provided; check optional fields.
viewModel.wishlist.productIds array Prepared product ids collection; may be empty. When the parent is provided; check optional fields.
viewModel.wishlist.wishlistId number wishlist identifier; do not load data with it. When the parent is provided; check optional fields.
viewModel.wishlist.wishlistKey string Wishlist key value supplied for this context. When the parent is provided; check optional fields.

The reference package uses its bundled theme CSS, Bootstrap and theme JavaScript. Account and checkout controls use the bundled checkout script. Additional page scripts: /theme/reference/checkout-js. Partials use their caller’s resolved assets.

<cfset viewModel = routeConfig.viewModel>
<cfoutput><h1>#encodeForHtml(viewModel.page.title)#</h1></cfoutput>

Use the page-specific structures above for the remaining content.

Use prepared form actions, field names and CSRF inputs from the reference implementation. Access checks, validation and commerce decisions remain outside the theme.