Source template/template/password.block.template.hbs

{{!--
/**
 * @template password%block
 * @language handlebars
 * @block template
 * @param {boolean} [edit]
 * @param {boolean} [hasLocalProvider]
 * @param {string} [password] Password value - will be obfuscated in display
 * @description Outputs password controls
 * 
 *     {{template "password.block"}}
 *
 * If display mode, simply outputs the password’s obfuscated value 
 *
 * If in edit mode, presents a control for the password and another to confirm it
 *
 * If the user has previously set a password (ie. has a local provider), they are prompted to provide the current password
 *
 * @see template:password-new%edit
 */
--}}
{{#if edit}}
{{#if hasLocalProvider}}
{{control "password-old" control-type="password-new"}}
{{{control "password-new" control-type="password-new"}}}
{{{control "password-confirm" control-type="password-new"}}}
{{else}}
{{control "password-new" control-type="password-new"}}
{{{control "password-confirm" control-type="password-new"}}}
{{/if}}
{{else}}
{{control "password" value=password}}
{{/if}}