doublesecretagency / craft-upvote

Upvote plugin for Craft CMS
Other
16 stars 6 forks source link

allow user to be able to vote from anew each time. #32

Closed vasuhooda closed 3 years ago

vasuhooda commented 3 years ago

Is it possible to use the plugin without cookies?

We want the user to be able to vote from anew each time.

lindseydiloreto commented 3 years ago

Hi there. What exactly do you mean by "each time"?

What if someone repeatedly refreshes the browser? Would they be able to vote again every time they refresh?

vasuhooda commented 3 years ago

By each time I mean each session. Yes, they would be able to vote again every time they refresh

lindseydiloreto commented 3 years ago

That seems like a recipe for massive voter fraud. Not sure why you would want to open up a loophole that big.

It isn't currently configurable, but you can fork the plugin and change the userCookieLifespan to be 0...

https://github.com/doublesecretagency/craft-upvote/blob/aa81bc70fc19863bd4a2524cf462542c5f1fbcac/src/services/UpvoteService.php#L31