Skip to content

Commit

Permalink
Merge pull request #144 from matthieu-rolland/backport-new-password-p…
Browse files Browse the repository at this point in the history
…olicy

Backport PR #140 (Fix: The new password policy is not present in the reset password)
  • Loading branch information
matthieu-rolland authored Apr 10, 2024
2 parents 90a2a88 + cc39d50 commit 842f4f6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions templates/customer/password-new.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,20 @@
sprintf=['%email%' => $customer_email|stripslashes]}
</div>

<div class="container-fluid">
<div class="container-fluid field-password-policy">
<div class="row form-group">
<label class="form-control-label col-md-3 offset-md-2">{l s='New password' d='Shop.Forms.Labels'}</label>
<div class="col-md-4">
<input class="form-control" type="password" data-validate="isPasswd" name="passwd" value="">
<div class="col-md-4 js-input-column">
<input
class="form-control"
type="password"
data-validate="isPasswd"
name="passwd"
value=""
{if isset($configuration.password_policy.minimum_length)}data-minlength="{$configuration.password_policy.minimum_length}"{/if}
{if isset($configuration.password_policy.maximum_length)}data-maxlength="{$configuration.password_policy.maximum_length}"{/if}
{if isset($configuration.password_policy.minimum_score)}data-minscore="{$configuration.password_policy.minimum_score}"{/if}
>
</div>
</div>

Expand Down

0 comments on commit 842f4f6

Please sign in to comment.