From e522ccb29eee5af7b318da746135191b9d54a8de Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Sun, 15 May 2022 12:04:45 +0200 Subject: [PATCH] Propagate do not store password option to mail template (#2745) --- .../NG/Portal/Plugins/MailPasswordReset.pm | 4 +- .../site/templates/bootstrap/mail.tpl | 40 ++++++++++++++----- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm index 748812f3d..025ba45ab 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/MailPasswordReset.pm @@ -633,8 +633,8 @@ sub display { DISPLAY_CONFIRMMAILSENT => 0, DISPLAY_MAILSENT => 0, DISPLAY_PASSWORD_FORM => 0, - ENABLE_PASSWORD_DISPLAY => - $self->conf->{portalEnablePasswordDisplay}, + ENABLE_PASSWORD_DISPLAY => $self->conf->{portalEnablePasswordDisplay}, + DONT_STORE_PASSWORD => $self->conf->{browsersDontStorePassword}, DISPLAY_PPOLICY => $self->conf->{portalDisplayPasswordPolicy} && $isPP, PPOLICY_MINSIZE => $self->conf->{passwordPolicyMinSize}, PPOLICY_MINLOWER => $self->conf->{passwordPolicyMinLower}, diff --git a/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl b/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl index e975f2519..9d78a1328 100644 --- a/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl +++ b/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl @@ -120,23 +120,41 @@
- - -
- -
+ + + +
+ +
+
+ + + +
+ +
+
-
+
- - -
- -
+ + + +
+ +
+
+ + + +
+ +
+