🐛 fixed bugged http response for Close()

This commit is contained in:
EntireTwix 2021-04-04 22:01:20 -07:00
parent 53b3c2c3ac
commit c32e70c3a5

View file

@ -40,18 +40,14 @@ public:
auto resp = HttpResponse::newHttpResponse(); auto resp = HttpResponse::newHttpResponse();
if (attempt == bank.admin_pass) if (attempt == bank.admin_pass)
{ {
resp->setBody("<p><span style=" color resp->setBody("<p><span style=\" color : #339966;\"><strong>[Webserver Closed]</strong></span></p>");
: #339966;
"><strong>[Webserver Closed]</strong></span></p>");
bank.Save(); bank.Save();
callback(resp); callback(resp);
app().quit(); app().quit();
} }
else else
{ {
resp->setBody("<p><span style=" color resp->setBody("<p><span style=\" color: #ff0000;\"><strong>[Invalid Password]</strong></span></p>");
: #ff0000;
"><strong>[Invalid Password]</strong></span></p>");
callback(resp); callback(resp);
} }
} }