Commit 70d2856d authored by Clément OUDOT's avatar Clément OUDOT

Option to display password generation box (#1928)

parent c75a74da
......@@ -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
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment