From 0187ba49382dc3ba3794027784664b2f53b405bb Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 26 May 2023 22:49:24 +0200 Subject: [PATCH] New hook: HOOK_ACCOUNT_CREATE_AFTER_PASSWORD for password strength meter --- system/hooks.php | 1 + system/templates/account.create.html.twig | 3 +++ 2 files changed, 4 insertions(+) diff --git a/system/hooks.php b/system/hooks.php index 1aa33283..f089b102 100644 --- a/system/hooks.php +++ b/system/hooks.php @@ -40,6 +40,7 @@ define('HOOK_ACCOUNT_CREATE_BEFORE_ACCOUNT', ++$i); define('HOOK_ACCOUNT_CREATE_AFTER_ACCOUNT', ++$i); define('HOOK_ACCOUNT_CREATE_AFTER_EMAIL', ++$i); define('HOOK_ACCOUNT_CREATE_AFTER_COUNTRY', ++$i); +define('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD', ++$i); define('HOOK_ACCOUNT_CREATE_AFTER_PASSWORDS', ++$i); define('HOOK_ACCOUNT_CREATE_BEFORE_CHARACTER_NAME', ++$i); define('HOOK_ACCOUNT_CREATE_AFTER_CHARACTER_NAME', ++$i); diff --git a/system/templates/account.create.html.twig b/system/templates/account.create.html.twig index 8e885b43..38907c74 100644 --- a/system/templates/account.create.html.twig +++ b/system/templates/account.create.html.twig @@ -96,6 +96,9 @@ {% if errors.password is defined %}{{ errors.password }}{% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD') }} + Repeat password: