Very basic anti-bot strategy for problems upload: do not pre-generate FEN
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 19 Dec 2018 22:11:21 +0000 (23:11 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 19 Dec 2018 22:11:21 +0000 (23:11 +0100)
public/javascripts/components/problems.js

index 9117ebf..d9265a3 100644 (file)
@@ -3,7 +3,7 @@ Vue.component('my-problems', {
                return {
                        problems: problemArray, //initial value
                        newProblem: {
-                               fen: V.GenRandInitFen(),
+                               fen: "",
                                instructions: "",
                                solution: "",
                                stage: "nothing", //or "preview" after new problem is filled
@@ -27,7 +27,8 @@ Vue.component('my-problems', {
                                        <form @submit.prevent="previewNewProblem">
                                                <fieldset>
                                                        <label for="newpbFen">Fen</label>
-                                                       <input id="newpbFen" type="text" v-model="newProblem.fen"/>
+                                                       <input id="newpbFen" type="text" v-model="newProblem.fen"
+                                                               placeholder="Full FEN string"/>
                                                </fieldset>
                                                <fieldset>
                                                        <p class="emphasis">Safe HTML tags allowed</p>