Closed cletusc closed 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],
Currently you can vote on a pull over and over. Verify IP or userdata and add an option for duplicate voting.