Several features added

Login/logout/auth, fan settling, period selection, log data, color themes, automatic logout + user logout if window is closed, alarm limits (colors) to monitor fields
This commit is contained in:
Miisa Ekholm
2022-10-25 21:20:56 +03:00
parent 9e3d953b9e
commit 2cb3347da8
466 changed files with 63934 additions and 1631 deletions

21
WebUI/node_modules/bcrypt/examples/async_compare.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
var bcrypt = require('../bcrypt');
var start = Date.now();
bcrypt.genSalt(10, function(err, salt) {
console.log('salt: ' + salt);
console.log('salt cb end: ' + (Date.now() - start) + 'ms');
bcrypt.hash('test', salt, function(err, crypted) {
console.log('crypted: ' + crypted);
console.log('crypted cb end: ' + (Date.now() - start) + 'ms');
console.log('rounds used from hash:', bcrypt.getRounds(crypted));
bcrypt.compare('test', crypted, function(err, res) {
console.log('compared true: ' + res);
console.log('compared true cb end: ' + (Date.now() - start) + 'ms');
});
bcrypt.compare('bacon', crypted, function(err, res) {
console.log('compared false: ' + res);
console.log('compared false cb end: ' + (Date.now() - start) + 'ms');
});
});
})
console.log('end: ' + (Date.now() - start) + 'ms');

View File

@@ -0,0 +1,8 @@
var bcrypt = require('../bcrypt');
(function printSalt() {
bcrypt.genSalt(10, function(err, salt) {
console.log('salt: ' + salt);
printSalt();
});
})()