Glitch-Shrike/app
ThibG d386d89179 Fix invalid votes from the API being accepted (#12601)
* Fix invalid votes from the API being accepted

Fixes #12556

- Ensure `choice` is an integer instead of silently converting to 0
- Ensure `choice` corresponds to an actual choice of the poll

* Please CodeClimate
2020-01-12 14:17:03 +01:00
..
chewy
controllers
helpers
javascript
lib
mailers
middleware
models
policies
presenters
serializers
services Fix invalid votes from the API being accepted (#12601) 2020-01-12 14:17:03 +01:00
validators Fix invalid votes from the API being accepted (#12601) 2020-01-12 14:17:03 +01:00
views
workers