Fixed Login bug when login credentials contained special characters

This commit is contained in:
kolaente 2017-10-08 15:22:05 +02:00
parent b74cad4aa8
commit 4e48fd77d2
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ function printHeader($title)
$.ajax({
type: 'POST',
url: '<?php echo $MCONF['web_uri']; ?>admin/login.php',
data: "username=" + $('#username').val() + "&pw=" + $('#pw').val() + "&2fa=" + $('#2fa').val(),
data: "username=" + encodeURIComponent($('#username').val()) + "&pw=" + encodeURIComponent($('#pw').val()) + "&2fa=" + $('#2fa').val(),
success: function (msg) {
console.log(msg);
if (msg == 'success') {