Okay, that was dumb

This commit is contained in:
Rick Falkvinge
2019-04-26 17:27:19 +02:00
parent a8472ebdd2
commit 4676c303bf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -212,7 +212,7 @@
dataType: "json",
async: false, // blocks until function returns - race conditions otherwise
success: function (msg) {
if (msg.d != true) {
if (msg.d.Success != true) {
// Credentials problem.
$('#TextMysqlRootPassword, #TextMysqlServerHost').css('background-image', "url('/Images/Icons/iconshock-red-cross-128x96px.png')").css('background-position', 'right center').css('background-repeat', 'no-repeat').css('background-size', '16px 12px');
+1 -1
View File
@@ -150,7 +150,7 @@ namespace Swarmops.Frontend.Pages.v5.Public
{
if (!Debugger.IsAttached)
{
return true; // Probable hack attempt - fail silently
return new AjaxCallResult {Success = true}; // Probable hack attempt - fail silently
}
}