From 4271d082b36effcde9928371e1ce33e8c14ea7f4 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Jun 29 2021 12:55:39 +0000 Subject: 💄 — Disable signature when using LDAP (Fix #249) --- diff --git a/CHANGELOG b/CHANGELOG index 66d76ae..601f64f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,7 @@ Revision history for Lufi - ✨ Add `disable_mail_sending` config parameter - 🌐 Update translations - 🐛 Fix mail signature separator + - 💄 Disable signature when using LDAP (#249) 0.05.13 2021-01-28 - 🐛 Fix latest git tag improperly fetched diff --git a/themes/default/templates/partial/mail.js.ep b/themes/default/templates/partial/mail.js.ep index 226cdc3..15e7332 100644 --- a/themes/default/templates/partial/mail.js.ep +++ b/themes/default/templates/partial/mail.js.ep @@ -45,7 +45,9 @@ function populateBody() { } }); +% if (!defined(config('ldap')) && !defined(config('htpasswd'))) { text = text+"\n-- \n<%= l('Share your files in total privacy on %1', url_for('/')->to_abs) %>"; +% } tArea = document.getElementById('body').value = text; updateMailtoLink(); }