Comments (1)
Fixed this in config.js under the admin save event:
self.saveAdminFetching = ko.observable(false);
self.saveAdminSuccess = ko.observable(false);
self.saveAdmin = function () {
var adminsave = {
user: self.config.www_username(),
pass: self.config.www_password()
};
if (adminsave.user.length > 16 || adminsave.pass.length > 16) {
alert("Please enter a username and password that is 16 characters or less");
} else {
self.saveAdminFetching(true);
self.saveAdminSuccess(false);
$.post(baseEndpoint + "/saveadmin", adminsave, function (data) {
self.saveAdminSuccess(true);
}).fail(function () {
alert("Failed to save Admin config");
}).always(function () {
self.saveAdminFetching(false);
});
}
};
from emonesp.
Related Issues (20)
- EmonCMS HTTPs fingerprint is not treated correctly HOT 1
- Add selectable baud rate
- Automatic Scheduled Restart HOT 1
- Timer 2 not working at all
- Release 3.1.0 on SonOff Basic WIFI switch HOT 4
- More than one package has been found by NTPClient @ 3.1.0 HOT 1
- Non standard MQTT port not saving
- No ability to change the serial baudrate HOT 2
- MQTT host IP address incorrect in debug HOT 2
- emoncms_path is missing HOT 1
- Add a 'last will' availability topic to MQTT
- State is not published to MQTT when smartplug is controlled via MQTT HOT 1
- Define HTTP Port of target emoncms server from UI HOT 2
- Time is wrong... HOT 1
- What is the purpose of the 'ctrl_update' variable ?
- Some part of the UI shown even should be hidden...
- Default values get overwritten... wrong behaviour HOT 2
- Control state On/Off/Timer is not saved if nothing else is changed in the dialog
- Current time ignores DST...
- NTP time with time zone and dst HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emonesp.