Protection of WordPress logins
This commit is contained in:
		@@ -0,0 +1,10 @@
 | 
			
		||||
<?php
 | 
			
		||||
function kompass_get_minimal_password_strength() {
 | 
			
		||||
    $minPasswordStrength = get_option('kompass_password_minimal_strength', 1);
 | 
			
		||||
 | 
			
		||||
    $possibleStrengths = ['1' => 'short, bad, good, strong',
 | 
			
		||||
                         '2' => 'good, strong',
 | 
			
		||||
                        '3' => 'strong'];
 | 
			
		||||
 | 
			
		||||
    return ' ' . $possibleStrengths[$minPasswordStrength];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user