Protection of WordPress logins

This commit is contained in:
2024-02-26 14:47:51 +01:00
parent bb741539f6
commit 18820c7191
18 changed files with 903 additions and 13 deletions

View File

@ -12,6 +12,7 @@
* Text Domain: bdp-kompass
*/
use Bdp\Modules\LimitLoginAttempts\Controllers\OptionsPage as OptionsPageAlias;
use Bdp\Modules\Security\Security;
use Bdp\Modules\Seo\Seo;
@ -36,6 +37,9 @@ function bdp_plugin_init() {
}
}
add_action('admin_menu', function () {
new OptionsPageAlias();
});
function register_custom_theme_directory() {
@ -47,4 +51,12 @@ function register_custom_theme_directory() {
switch_theme('buena');
}
function enqueue_custom_password_js() {
wp_enqueue_script( 'custom-password-js', BDP_LV_PLUGIN_URL . 'assets/password.js');
wp_localize_script( 'custom-password-js', 'php_vars', [
'allowed_strengths' => kompass_get_minimal_password_strength(),
'password_too_short_text' => 'Dass Passwort entspricht nicht den Anforderungen.'
]);
}
#add_action( 'after_setup_theme', 'register_custom_theme_directory' );