jnaqsh / nerdnews

A free and open source social news website focusing on computer science and FOSS news for Persian community
http://nerdnews.ir/
43 stars 13 forks source link

Voting Twice! #40

Closed aidin36 closed 11 years ago

aidin36 commented 11 years ago

User can vote twice in this special situation:

I pressed the Green Vote Button once, and select one of the options. Then, my browser started to load. It took a little while. Before it loads the page again, I pressed the green button again and select another option.

Now two votes are registered!

Take a look at this link, and see that I voted twice under the "آیدین غریب‌نواز" ID.

It's better not to rely on the UI (Disabled vote buttons). Server should check for duplication individually.

hamedrnik commented 11 years ago

I knew it before, after a ajax request, buttons must be disabled and also a validation of uniqueness on votes will be created. This will be fixed in the next version of nerdnews. Thanks for your reporting