mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐛 fixed bugged http response for Close()
This commit is contained in:
parent
53b3c2c3ac
commit
c32e70c3a5
1 changed files with 2 additions and 6 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue