From 6c3adaab2be3a885145ac339cbaefbe4ba87483b Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 13 Sep 2018 14:35:15 +0200 Subject: [PATCH] Mise en place dans le template d'une URL de reset de password (fixes #4) --- dicos/70_lemonldap_ng.xml | 5 +++++ tmpl/lmConf-1.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dicos/70_lemonldap_ng.xml b/dicos/70_lemonldap_ng.xml index a54b0ed..718c96f 100644 --- a/dicos/70_lemonldap_ng.xml +++ b/dicos/70_lemonldap_ng.xml @@ -61,6 +61,7 @@ oui + oui @@ -115,6 +116,10 @@ Custom llRegisterURL + + non + llResetUrl + ['bootstrap','dark','impact','pastel'] False diff --git a/tmpl/lmConf-1.js b/tmpl/lmConf-1.js index a447560..60af145 100644 --- a/tmpl/lmConf-1.js +++ b/tmpl/lmConf-1.js @@ -392,7 +392,11 @@ "oidcOPMetaDataJWKS": null, "webIDAuthnLevel": 1, "issuerDBOpenIDActivation": "1", +%if %%is_empty(%%llResetUrl) "mailUrl": "https://%%authWebName/mail.pl", +%else + "mailUrl": "%%llResetUrl", +%end if "maintenance": 0, "jsRedirect": 0, "cfgAuthor": "Cadoles",