HAL: Encode username and password in login form

This commit is contained in:
Alexander Sulfrian
2019-05-24 18:40:48 +02:00
parent 68a068db37
commit 2111d03ffb

View File

@@ -139,7 +139,7 @@
url : window.location.href.replace("login.html", "") + 'api/authn/login',
type : 'POST',
async : false,
data : 'password='+$("#password").val()+'&user='+$("#username").val() ,
data : 'password='+encodeURIComponent($("#password").val())+'&user='+encodeURIComponent($("#username").val()),
headers : {
"Content-Type" : 'application/x-www-form-urlencoded',
"Accept:" : '*/*'