Updated API to force account creation through LSP when no accounts present

This commit is contained in:
Thulinma 2017-05-15 17:15:36 +02:00
parent 288cc5d3ce
commit 38bbadb731

View file

@ -129,7 +129,7 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
authorized = true;
}
//if already authorized, do not re-check for authorization
if (authorized){
if (authorized && Storage["account"]){
Response["authorize"]["status"] = "OK";
}else{
authorized |= authorize(Request, Response, conn);