How to limit one user to vote only once?

0
Hi, i’m making some kind a 9gag copy app, and on my homepage there are posts where users can vote up or down depending whether they like it or not, but problem is one user can make unlimited votes, How can i limit to one vote per user?
asked
2 answers
1

Create a reference that you set when the user uses its vote. This way you can check if the reference is empty before setting it.

Regards,
Ronald

 

answered
0

First of all you will need the voters to be authenticated. Second you need to assign each post to a voter when up- or down-voted.

 

answered