-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notification moderator: link to commented page to moderate comments instead of links to approve or delete with CSRF confirmation #163
Conversation
@ksuess thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM, except disabling CSRF protection.
@jenkins-plone-org please run jobs |
It would be nice if moderator could click on "approve" in email, logs in and does not have to confirm that he really wants do this action. |
The token hash contains the username, so it sending out an email with token for a different user does not work. But disabling the CSRF protection for moderation is not what we want from a security point of view. I would create an intermediate page (Do you want to approve the message .... ? Yes, No) with a link to actually approve a comment. Then on the page the CSRF token can be inserted. |
So one option for a new moderator notification could be an email with
|
…quest to log in for moderating comment added. New moderator notification with email and link to commented page and request to login. No links to approve and delete: due to CSRF direct links to modification of Plone objects result in request to confirm. So page with comments is presented to moderator. If already logged in, moderator is on comment to moderate. If not logged in, moderator is on login page with came_from.
unused IDisableCSRFProtection removed
@jenkins-plone-org please run jobs |
@jenkins-plone-org please run jobs |
see #162