1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 22:17:45 +00:00

fix ps4transitionally.html sending accountid as string, not int

This commit is contained in:
NotAdam 2018-12-19 14:43:37 +11:00
parent ab3c3a91cd
commit 321e42dbcc

View file

@ -8,7 +8,7 @@
<script> <script>
function doLogin(){ function doLogin(){
var url = "sapphire-api/lobby/insertSession"; var url = "sapphire-api/lobby/insertSession";
var params = "{\"sId\":\"" + document.getElementsByName('sid')[0].value + "\",\"secret\":\"" + document.getElementsByName('secret')[0].value + "\",\"accountId\":\"" + document.getElementsByName('accountId')[0].value + "\"}"; var params = "{\"sId\":\"" + document.getElementsByName('sid')[0].value + "\",\"secret\":\"" + document.getElementsByName('secret')[0].value + "\",\"accountId\":" + document.getElementsByName('accountId')[0].value + "}";
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("POST", url, true); xhr.open("POST", url, true);