Account password reset template
Password-reset request, token form or completion state.
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.passwordReset.labels uses the account-label structure.
viewModel.account.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.errors |
array | Prepared errors collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.hasErrors |
boolean | Whether errors applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.hasNotice |
boolean | Whether notice applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.labels |
object | Labels data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.navigation |
array | Prepared navigation collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.notice |
object | Notice data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.notice.message |
string | Message value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.notice.type |
string | Type value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset |
object | Password reset data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.email |
string | Email value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.isComplete |
boolean | Whether complete applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.labels |
object | Labels data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.loginUrl |
string | Prepared login URL; use unchanged. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.mode |
string | Mode value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.requestAction |
string | Request action value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.requestIntro |
string | Request intro value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.requestTitle |
string | Request title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.resetAction |
string | Reset action value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.resetIntro |
string | Reset intro value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.resetTitle |
string | Reset title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.token |
string | Token value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState |
object | Token state data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.currencyId |
number | currency identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.customerGroupId |
number | customer group identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.customerId |
number | customer identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.customerNumber |
string | Customer number value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.customerShopId |
number | customer shop identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.email |
string | Email value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.expiresAt |
string | expires timestamp; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.isValid |
boolean | Whether valid applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.languageId |
number | language identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.languageIsoCode |
string | Language iso code value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.selector |
string | Selector value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.shopId |
number | shop identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.passwordReset.tokenState.tokenId |
number | token identifier; do not load data with it. | 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. |
Assets
Section titled “Assets”The reference package uses its bundled theme CSS, Bootstrap and theme JavaScript. Account and checkout controls use the bundled checkout script. Partials use their caller’s resolved assets.
Example
Section titled “Example”<cfset viewModel = routeConfig.viewModel><cfoutput><h1>#encodeForHtml(viewModel.page.title)#</h1></cfoutput>Use the page-specific structures above for the remaining content.
Behaviour
Section titled “Behaviour”Use prepared form actions, field names and CSRF inputs from the reference implementation. Access checks, validation and commerce decisions remain outside the theme.