mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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',
|
||||
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:" : '*/*'
|
||||
|
Reference in New Issue
Block a user