Jahia in English > duplicate voting...

0 (0 Good)
0 (0 Bad)

duplicate voting on poll

by  bharatkasodariya »  2017/02/03 13:51

how to prevent duplicate poll vote.

If user clear cookie then can again vote. Is there any option to prevent duplicate vote from same user.

  • duplicate voting on poll
    2017/02/03 13:51

    bharatkasodariya <p>how to prevent duplicate poll vote.</p> <p>If user clear cookie then can again vote. Is there any option to prevent duplicate vote from same user.</p>

  • Number of messages  57
    Registration date Feb 3, 2017
    0 (0 Good)
    0 (0 Bad)

    Re: duplicate voting on poll

    by  cefou »  2018/04/13 09:26

    Hi,

    I think the current implementation check only the presence of a cookie, see https://github.com/Jahia/poll/blob/2_0_2/src/main/resources/jnt_poll/html/poll.jsp lines 32... (that replace the vote form by the results when the cookie is already present).

    Futhermore, it seems that if you call directly the voteAction, there is no security check to avoid duplicates votes...
    https://github.com/Jahia/poll/blob/2_0_2/src/main/java/org/jahia/modules/poll/VoteAction.java

    So don't use it for critical polls/voting system :/

    Kind regards,

      (cefou)

    Number of messages  17
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page