From 38bbadb731cdb36e8ccb82f4472e60840e9c017e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 15 May 2017 17:15:36 +0200 Subject: [PATCH] Updated API to force account creation through LSP when no accounts present --- src/controller/controller_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/controller_api.cpp b/src/controller/controller_api.cpp index b3e94277..be468584 100644 --- a/src/controller/controller_api.cpp +++ b/src/controller/controller_api.cpp @@ -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);