homebridge-smartsystem 7.2.2 → 7.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/smartapp.js +4 -0
- package/server/views/proxy.ejs +5 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-smartsystem",
|
|
3
3
|
"displayname": "Duotecno Bridge",
|
|
4
|
-
"version": "7.2.
|
|
4
|
+
"version": "7.2.3",
|
|
5
5
|
"description": "SmartServer (Proxy TCP sockets to the cloud, Smappee MQTT, Duotecno IP Nodes, Homekit interface)",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Johan Coppieters",
|
package/server/smartapp.js
CHANGED
|
@@ -263,6 +263,10 @@ function SmartSocketInit(message){
|
|
|
263
263
|
// save username / password in config
|
|
264
264
|
this.config.username = user;
|
|
265
265
|
this.config.password = pw;
|
|
266
|
+
// remember the username as the login page's default, so it doesn't keep falling back
|
|
267
|
+
// to the hardcoded "duotecno" default for gateways whose actual account uses another name
|
|
268
|
+
this.config.user = user;
|
|
269
|
+
this.user = user;
|
|
266
270
|
this.writeConfig();
|
|
267
271
|
this.token = access_token;
|
|
268
272
|
(0, config_1.setToken)(this.token);
|
package/server/views/proxy.ejs
CHANGED
|
@@ -116,11 +116,14 @@
|
|
|
116
116
|
<div class="row" style="margin-top: 0;">
|
|
117
117
|
<div class="input-field col s6">
|
|
118
118
|
<label for="dserverEmail">Duotecno Account Email</label>
|
|
119
|
-
<input id="dserverEmail" name="dserverEmail" type="email"
|
|
119
|
+
<input id="dserverEmail" name="dserverEmail" type="email" autocomplete="off"
|
|
120
|
+
value="<%= config.dserverEmail || '' %>">
|
|
120
121
|
</div>
|
|
121
122
|
<div class="input-field col s6">
|
|
122
123
|
<label for="dserverPassword">Duotecno Account Password</label>
|
|
123
|
-
<input id="dserverPassword" name="dserverPassword" type="
|
|
124
|
+
<input id="dserverPassword" name="dserverPassword" type="text" autocomplete="off"
|
|
125
|
+
style="-webkit-text-security: disc;"
|
|
126
|
+
value="<%= config.dserverPassword || '' %>">
|
|
124
127
|
</div>
|
|
125
128
|
</div>
|
|
126
129
|
|