From 8fc5273509758894fc3f53f6369eef29d57b556d Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 2 Oct 2013 14:41:46 +0200 Subject: [PATCH] When settings are saved, firmware signs in (for changed wifiboxid) --- src/rest/api/api_config.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rest/api/api_config.lua b/src/rest/api/api_config.lua index e127c99..304a689 100644 --- a/src/rest/api/api_config.lua +++ b/src/rest/api/api_config.lua @@ -1,6 +1,7 @@ local log = require('util.logger') local settings = require('util.settings') local printer = require('util.printer') +local signin = require('network.signin') local M = { isApi = true @@ -26,6 +27,10 @@ function M._global_POST(request, response) else response:addData(k, "could not set key ('" .. m .. "')") end end + + log:info("API:Network:try signing in") + signin.signin(); + log:info("API:Network:signed in") end function M.all_GET(request, response)