From 6bba311d8cc8dea750bd386f0fecd2ddb8dcb1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Fri, 25 Sep 2015 10:33:51 +0200 Subject: [PATCH] [FIX] website_mail : force login to post comment Transform POST param into GET param when redirecting to login page can cause security issues. Now, instead of displaying textarea (even if public user) and the redirect to login page keeping written comment, we display the login button with a redirection to the page to comment. The redirection happen before commenting, avoiding to remenber param such comment text, rating, ... To post a comment, the user must: - be connected - have a token - or have a sha_sign --- addons/website_mail/views/website_mail.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/website_mail/views/website_mail.xml b/addons/website_mail/views/website_mail.xml index 2e246ac18c2..a0d4b4e85a2 100644 --- a/addons/website_mail/views/website_mail.xml +++ b/addons/website_mail/views/website_mail.xml @@ -40,8 +40,10 @@ :chatter_mode string: 'json' or 'post' depending on what kind of request you want -->
-
-
+ + +
+
@@ -58,6 +60,10 @@
+
+

Leave a comment

+

You must be logged in to post a comment.

+