Updated API to force account creation through LSP when no accounts present
This commit is contained in:
parent
288cc5d3ce
commit
38bbadb731
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue