mirror of
https://github.com/Mowie/Mowie
synced 2024-06-09 12:19:39 +00:00
Fixed Login bug when login credentials contained special characters
This commit is contained in:
parent
b74cad4aa8
commit
4e48fd77d2
|
@ -450,7 +450,7 @@ function printHeader($title)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '<?php echo $MCONF['web_uri']; ?>admin/login.php',
|
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) {
|
success: function (msg) {
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
if (msg == 'success') {
|
if (msg == 'success') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user