Changed how client sends pronouns.
parent
c78be1a16b
commit
a2f6d779cd
|
@ -20,22 +20,24 @@
|
|||
<input type="text" id="uname" name="uname" required><br>
|
||||
|
||||
<label for="pin">Pin:</label><br>
|
||||
<input type="number" id="pin" name="pin" required><br>
|
||||
<input type="number" id="pin" name="pin" required><br><br>
|
||||
|
||||
<label for="selected">Pronouns:</label><br>
|
||||
<select id="selected" name="selected">
|
||||
<option value="nothing"></option>
|
||||
<option value="she">she/her</option>
|
||||
<option value="he">he/him</option>
|
||||
<option value="they">they/them</option>
|
||||
<option value="it">it</option>
|
||||
<option value="fae">fae/faer</option>
|
||||
</select><br>
|
||||
<option value="she.her">she/her</option>
|
||||
<option value="he.him">he/him</option>
|
||||
<option value="they.them">they/them</option>
|
||||
<option value="it.its">it</option>
|
||||
<option value="fae.faer">fae/faer</option>
|
||||
</select>
|
||||
|
||||
<p>Or.</p>
|
||||
|
||||
<label for="custom">Custom Pronouns:</label><br>
|
||||
<input type="text" id="custom" name="custom"><br><br>
|
||||
<input type="text" id="custom" name="custom">
|
||||
|
||||
<p>Format: pronoun/otherpronoun</p><br>
|
||||
|
||||
<input type="submit" value="Register">
|
||||
</form>
|
||||
|
|
|
@ -39,7 +39,7 @@ async function getUname() {
|
|||
}
|
||||
|
||||
async function register() {
|
||||
const rawResponse = await fetch(`${API_URL}/api/register/${uname.toString().toLowerCase()}/${pin.toString()}/${pronouns.toString().toLowerCase()}`, {
|
||||
const rawResponse = await fetch(`${API_URL}/api/register/${uname.toString().toLowerCase()}/${pin.toString()}/${pronouns.toString().toLowerCase().replace("/", ".")}`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'text/plain'
|
||||
|
|
Loading…
Reference in New Issue