Option to display password generation box (#1928)

This commit is contained in:
Clément OUDOT 2019-09-12 18:26:56 +02:00
parent c75a74da5a
commit 70d2856d71
2 changed files with 4 additions and 0 deletions

View File

@ -555,6 +555,8 @@ sub display {
PPOLICY_MINLOWER => $self->conf->{passwordPolicyMinLower},
PPOLICY_MINUPPER => $self->conf->{passwordPolicyMinUpper},
PPOLICY_MINDIGIT => $self->conf->{passwordPolicyMinDigit},
DISPLAY_GENERATE_PASSWORD =>
$self->conf->{portalDisplayGeneratePassword},
);
if ( $req->data->{mailToken}
and

View File

@ -145,6 +145,7 @@
<input name="confirmpassword" type="password" class="form-control" trplaceholder="confirmPwd" />
</div>
<TMPL_IF NAME="DISPLAY_GENERATE_PASSWORD">
<div class="input-group mb-3">
<div class="input-group-prepend">
<div class="input-group-text">
@ -155,6 +156,7 @@
<label for="reset" id="resetlabel" trspan="generatePwd">Generate the password automatically</label>
</p>
</div>
</TMPL_IF>
<button type="submit" class="btn btn-success">
<span class="fa fa-envelope-open"></span>