mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
HAL: Encode username and password in login form
This commit is contained in:
@@ -139,7 +139,7 @@
|
|||||||
url : window.location.href.replace("login.html", "") + 'api/authn/login',
|
url : window.location.href.replace("login.html", "") + 'api/authn/login',
|
||||||
type : 'POST',
|
type : 'POST',
|
||||||
async : false,
|
async : false,
|
||||||
data : 'password='+$("#password").val()+'&user='+$("#username").val() ,
|
data : 'password='+encodeURIComponent($("#password").val())+'&user='+encodeURIComponent($("#username").val()),
|
||||||
headers : {
|
headers : {
|
||||||
"Content-Type" : 'application/x-www-form-urlencoded',
|
"Content-Type" : 'application/x-www-form-urlencoded',
|
||||||
"Accept:" : '*/*'
|
"Accept:" : '*/*'
|
||||||
|
Reference in New Issue
Block a user