Skip to content

Commit

Permalink
New hook: HOOK_ACCOUNT_CREATE_AFTER_PASSWORD
Browse files Browse the repository at this point in the history
for password strength meter
  • Loading branch information
slawkens committed May 26, 2023
1 parent bedfc0a commit 0187ba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
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);
Expand Down
3 changes: 3 additions & 0 deletions system/templates/account.create.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
</td>
</tr>
<tr><td></td><td><span id="password_error" class="FormFieldError">{% if errors.password is defined %}{{ errors.password }}{% endif %}</span></td></tr>

{{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD') }}

<tr>
<td class="LabelV" style="width: 150px">
<span{% if errors.password is defined %} class="red"{% endif %}>Repeat password:</span>
Expand Down

0 comments on commit 0187ba4

Please sign in to comment.