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
..
2019-09-20 23:05:23 +02:00
2019-09-10 12:43:06 +02:00
2019-09-16 15:11:01 +02:00
2019-11-13 23:24:55 +01:00
2019-09-10 12:43:06 +02:00
2019-09-10 12:43:06 +02:00
2019-09-10 12:43:06 +02:00
2019-11-13 23:24:55 +01:00
2019-09-10 12:43:06 +02:00
2019-10-03 03:36:52 +02:00
2019-11-13 23:24:55 +01:00
2019-11-13 23:24:55 +01:00
2019-09-16 15:11:01 +02:00
2019-09-16 15:11:01 +02:00
2019-11-13 23:24:55 +01:00
2019-11-13 23:24:55 +01:00