mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Encode credentials during login (#6163)
This commit is contained in:
parent
a6778d7d22
commit
71e4071871
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@
|
||||||
xhr.onerror = function() {
|
xhr.onerror = function() {
|
||||||
document.getElementsByClassName("login-error")[0].innerHTML = localeStrings.internal_error;
|
document.getElementsByClassName("login-error")[0].innerHTML = localeStrings.internal_error;
|
||||||
};
|
};
|
||||||
xhr.send("username=" + username + "&password=" + password + "&returnURL=" + returnURL);
|
var body = "username=" + encodeURIComponent(username) + "&password=" + encodeURIComponent(password) + "&returnURL=" + encodeURIComponent(returnURL);
|
||||||
|
xhr.send(body);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue