busy-components
Version:
busybusy component addon library for ember-cli.
21 lines (16 loc) • 397 B
JavaScript
/**
* @module components
*
*/
import BCValidate from './bc-validate';
/**
* `BusyComponents/Component/BCValidatePassword`
*
*/
export default BCValidate.extend(
{
validateExpression: /^(?=.*[0-9])(?=.*[a-zA-Z])(\w|[!@#$%^&*?_~-]).{5,}$/,
type: 'password',
invalidError: 'Password must contain at a number, a letter, and be more than 6 characters long.',
placeholder: 'Password',
});