passwordValidationSettings = {}; Meteor.startup(function(){ passwordValidationSettings.usePwstrength = Meteor.settings.public.usePwstrength; passwordValidationSettings.pwstrengthOptions = { common: { minChar: 8, zxcvbn: (Meteor.settings.public.useZxcvbn || false) }, ui: { showVerdictsInsideProgressBar: true, showStatus: true } } }); // Validate Password: at least 8 characters in length and contain at least 1 uppercase, 1 lowercase and 1 number and 1 special character validatePassword = function(password) { var result = password.search(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*])[0-9a-zA-Z!@#$%^&*]{8,}$/i); if (result > -1) { return true; } return false; };