We've been fighting with the Max Wager Amount for some time, with mixed success, but one member in particular always managed to get past the limit even when set as a User Permission. The cause finally struck me today, almost by chance and it comes down to keyboard use.
Using the +/- buttons on the Place Wager form has always restricted the wager amount correctly but a member can type in whatever value they like. This is fair enough because nobody will want to click the buttons to wager 1000 credits when it goes up in steps of 5. The problem occurs when they submit their wager.
Everything works perfectly if you click the "Place Wager" button to submit your amount. The number in the textbox changes to the relevant limit as stated on the overlay and that is the number that is accepted.
However, if you just use your keyboard and press enter to submit your amount, it allows you to bet unlimited! The number in the textbox changes but has no effect, the number typed is still the one accepted.
Example:
An outcome is limited to a Maximum Wager Amount of 10 credits.
Scenario 1:
Member types 100 into the textbox and clicks 'Place Wager'
The number in the textbox changes to 10 and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 10, the member's wager is listed as 10 and their 10 credits have been taken from their account
Scenario 2:
Member types 100 into the textbox and hits Enter on his keyboard
The number in the textbox changes to 10 and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 100, the member's wager is listed as 100 and their 100 credits have been taken from their account
Scenario 3:
Member types 100 into the textbox and hits Tab on his keyboard
The number in the textbox changes to 10
Member hits Enter on his keyboard and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 10, the member's wager is listed as 10 and their 10 credits have been taken from their account
Pressing Tab evaluates the amount entered without submitting the form, but I doubt anyone would do that where only one field is required. Personally, I use the numberpad to type my numbers then Enter to submit so it was a long time before I realised that the limits actually worked when clicking the "Place Wager" button.
I suspect the only solution is an extra validation step once the form is submitted
Using the +/- buttons on the Place Wager form has always restricted the wager amount correctly but a member can type in whatever value they like. This is fair enough because nobody will want to click the buttons to wager 1000 credits when it goes up in steps of 5. The problem occurs when they submit their wager.
Everything works perfectly if you click the "Place Wager" button to submit your amount. The number in the textbox changes to the relevant limit as stated on the overlay and that is the number that is accepted.
However, if you just use your keyboard and press enter to submit your amount, it allows you to bet unlimited! The number in the textbox changes but has no effect, the number typed is still the one accepted.
Example:
An outcome is limited to a Maximum Wager Amount of 10 credits.
Scenario 1:
Member types 100 into the textbox and clicks 'Place Wager'
The number in the textbox changes to 10 and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 10, the member's wager is listed as 10 and their 10 credits have been taken from their account
Scenario 2:
Member types 100 into the textbox and hits Enter on his keyboard
The number in the textbox changes to 10 and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 100, the member's wager is listed as 100 and their 100 credits have been taken from their account
Scenario 3:
Member types 100 into the textbox and hits Tab on his keyboard
The number in the textbox changes to 10
Member hits Enter on his keyboard and the overlay disappears
When the page refreshes, the "Total Staked" for that outcome has increased by 10, the member's wager is listed as 10 and their 10 credits have been taken from their account
Pressing Tab evaluates the amount entered without submitting the form, but I doubt anyone would do that where only one field is required. Personally, I use the numberpad to type my numbers then Enter to submit so it was a long time before I realised that the limits actually worked when clicking the "Place Wager" button.
I suspect the only solution is an extra validation step once the form is submitted