Commit 381ad195 authored by nanahira's avatar nanahira

add score post nonce

parent fe1a61b6
Pipeline #39766 passed with stages
in 9 minutes and 24 seconds
...@@ -1536,6 +1536,7 @@ class Room ...@@ -1536,6 +1536,7 @@ class Room
form_data.append 'start', @start_time form_data.append 'start', @start_time
form_data.append 'end', end_time form_data.append 'end', end_time
form_data.append 'arena', @arena form_data.append 'arena', @arena
form_data.append 'nonce', Math.random().toString()
post_score_process = () -> post_score_process = () ->
axios.post settings.modules.arena_mode.post_score, form_data, axios.post settings.modules.arena_mode.post_score, form_data,
......
...@@ -2011,6 +2011,7 @@ ...@@ -2011,6 +2011,7 @@
form_data.append('start', this.start_time); form_data.append('start', this.start_time);
form_data.append('end', end_time); form_data.append('end', end_time);
form_data.append('arena', this.arena); form_data.append('arena', this.arena);
form_data.append('nonce', Math.random().toString());
post_score_process = function() { post_score_process = function() {
return axios.post(settings.modules.arena_mode.post_score, form_data, { return axios.post(settings.modules.arena_mode.post_score, form_data, {
validateStatus: function(status) { validateStatus: function(status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment