GamerPolls / gamerpolls.com

A polling site geared towards use by streamers on Twitch.
http://gamerpolls.com/
GNU General Public License v3.0
5 stars 2 forks source link

Ensure no duplicate votes #5

Closed cletusc closed 10 years ago

cletusc commented 10 years ago

Currently you can vote on a pull over and over. Verify IP or userdata and add an option for duplicate voting.

Muddr commented 10 years ago

Maybe adding a useLogin and voters array to the poll schema. If useLogin is false then voters is an array of IPs and if useLogin is true then voters would be an array of usernames for that pollType(Twitch, etc.).

When loading the poll if the voter is in the voters array then redirect them to the poll results page.

Poll Schema

    pollType: String,
    useLogin: Boolean,
    voters: [String],

Example