new
This commit is contained in:
@@ -27,11 +27,11 @@
|
||||
* "auth": false, // if basic authentication is required. If enabled, the secure connection should be used.
|
||||
* "secure": false, // If SSL communication must be used. Should has the name "secure", because it can be changed from console.
|
||||
* "bind": "0.0.0.0", // Specific address, where the server will be started. "0.0.0.0" means that it will be available for all addresses. Should has the name "bind", because it can be changed from console.
|
||||
* "defaultUser": "admin", // If authentication is disabled, here can be specified as which user the requests will be done to iobroker DB.
|
||||
* "certPublic": "defaultPublic",// Required for SSL communication: name of some public certificate from iobroker DB
|
||||
* "certPrivate": "defaultPrivate"// Required for SSL communication: name of some private key from iobroker DB
|
||||
* "defaultUser": "admin", // If authentication is disabled, here can be specified as which user the requests will be done to yunkong2 DB.
|
||||
* "certPublic": "defaultPublic",// Required for SSL communication: name of some public certificate from yunkong2 DB
|
||||
* "certPrivate": "defaultPrivate"// Required for SSL communication: name of some private key from yunkong2 DB
|
||||
*
|
||||
* "pollURL": "", // Request all 30 seconds the JSON from this URL, parse it and store in ioBroker
|
||||
* "pollURL": "", // Request all 30 seconds the JSON from this URL, parse it and store in yunkong2
|
||||
* "interval": 30000 // polling interval
|
||||
* }
|
||||
* }
|
||||
@@ -53,7 +53,7 @@ var request = null; // will be initialized later if polling enabled
|
||||
// you have to call the adapter function and pass a options object
|
||||
// name has to be set and has to be equal to adapters folder name and main file name excluding extension
|
||||
// adapter will be restarted automatically every time as the configuration changed, e.g system.adapter.template.0
|
||||
var adapter = utils.Adapter('template-rest');
|
||||
var adapter = utils.Adapter('rest');
|
||||
var LE = require(utils.controllerDir + '/lib/letsencrypt.js');
|
||||
|
||||
// REST server
|
||||
@@ -176,7 +176,7 @@ function initWebServer(settings) {
|
||||
var login = loginPass[0];
|
||||
var password = loginPass[1];
|
||||
|
||||
// Check in ioBroker user and password
|
||||
// Check in yunkong2 user and password
|
||||
adapter.checkPassword(login, password, function (result) {
|
||||
if (!result) {
|
||||
adapter.log.error('Wrong user or password: ' + login);
|
||||
|
||||
Reference in New Issue
Block a user