HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/KWessing/buddypress/bp-forums/bbpress/bb-includes/js/profile-edit.js
function check_pass_strength () {
	var pass = jQuery('#pass1').val();
	var user = jQuery('#user_login').val();

	// get the result as an object, i'm tired of typing it
	var res = jQuery('#pass-strength-result');

	var strength = passwordStrength(pass, user);

	jQuery(res).removeClass('short bad good strong');

	if ( strength == pwsL10n.bad ) {
		jQuery(res).addClass('bad');
		jQuery(res).html( pwsL10n.bad );
	}
	else if ( strength == pwsL10n.good ) {
		jQuery(res).addClass('good');
		jQuery(res).html( pwsL10n.good );
	}
	else if ( strength == pwsL10n.strong ) {
		jQuery(res).addClass('strong');
		jQuery(res).html( pwsL10n.strong );
	}
	else {
		// this catches 'Too short' and the off chance anything else comes along
		jQuery(res).addClass('short');
		jQuery(res).html( pwsL10n.short );
	}
}

jQuery(function($) { 
	$('#pass1').keyup( check_pass_strength ) 
	$('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
});

jQuery(document).ready( function() {
	jQuery('#pass1,#pass2').attr('autocomplete','off');
});