nathanbreitsch / storytime

Make stories with your friends!
0 stars 0 forks source link

One vote per client per sentence #6

Open nathanbreitsch opened 9 years ago

nathanbreitsch commented 9 years ago

Limit votes to one vote per client per sentence. This requires keeping track of how each person voted. On the ui side, have the arrows change class to indicate that user voted for a particular sentence already.

brianbreitsch commented 9 years ago

We want behavior similar to stack exchange--I will try looking there.

brianbreitsch commented 9 years ago

No luck on StackExchange. This answer is for php, but is demonstrative nonetheless: http://stackoverflow.com/questions/11729688/allowing-only-one-vote-per-person-on-a-voting-system It appears that what we want to do is store the user IP in a database--or better yet, force users to create and account. Long-term, I think the account option is necessary.