UserModel::addPasswordStrength PHP Method

addPasswordStrength() public method

Set password strength meter on a form.
public addPasswordStrength ( Gdn_Controller $Controller )
$Controller Gdn_Controller The controller to add the password strength information to.
    public function addPasswordStrength($Controller)
    {
        $Controller->addJsFile('password.js');
        $Controller->addDefinition('MinPassLength', c('Garden.Registration.MinPasswordLength'));
        $Controller->addDefinition('PasswordTranslations', implode(',', [t('Password Too Short', 'Too Short'), t('Password Contains Username', 'Contains Username'), t('Password Very Weak', 'Very Weak'), t('Password Weak', 'Weak'), t('Password Ok', 'OK'), t('Password Good', 'Good'), t('Password Strong', 'Strong')]));
    }
UserModel