mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +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();
|
||||
if (attempt == bank.admin_pass)
|
||||
{
|
||||
resp->setBody("<p><span style=" color
|
||||
: #339966;
|
||||
"><strong>[Webserver Closed]</strong></span></p>");
|
||||
resp->setBody("<p><span style=\" color : #339966;\"><strong>[Webserver Closed]</strong></span></p>");
|
||||
bank.Save();
|
||||
callback(resp);
|
||||
app().quit();
|
||||
}
|
||||
else
|
||||
{
|
||||
resp->setBody("<p><span style=" color
|
||||
: #ff0000;
|
||||
"><strong>[Invalid Password]</strong></span></p>");
|
||||
resp->setBody("<p><span style=\" color: #ff0000;\"><strong>[Invalid Password]</strong></span></p>");
|
||||
callback(resp);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue