jnaqsh/nerdnews

Voting Twice!

Closed this issue · 1 comments

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.

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