Control type password-new

default.control

Ensures conditions for submitting a new password have been met

Output a new password control with the name "foo"

{{control "foo" control-type="password-new"}}

or just

{{control "foo"}}

if the controltype property for the "foo" property in the model schema has been set to "password-new"

Error codes

  • password.old-password-required
  • password.no-confirmation
  • password.passwords-do-not-match
Source:
See:

Methods

(static) validate(value)

Checks

  • old password has been provided (if not creating a brand new password)
  • new password has been entered
  • new password has been confirmed and matched
Parameters
Name Type Description
value string
Source: