/** * @file * Theme elements for user password forms. */ ((Drupal) => { /** * Constructs a password confirm message element. * * @param {object} passwordSettings * An object containing password related settings and translated text to * display. * @param {string} passwordSettings.confirmTitle * The translated confirm description that labels the actual confirm text. * * @return {string} * Markup for the password confirm message. */ Drupal.theme.passwordConfirmMessage = ({ confirmTitle }) => { const confirmTextWrapper = ''; return `
`; }; /** * Constructs a password strength message. * * @param {object} passwordSettings * An object containing password related settings and translated text to * display. * @param {string} passwordSettings.strengthTitle * The title that precedes the strength text. * * @return {string} * Markup for password strength message. */ Drupal.theme.passwordStrength = ({ strengthTitle }) => { const strengthIndicator = ''; const strengthText = ''; return `