Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/js/views/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ const SettingsScreen = {
},

validateWifi: function () {
const valid = this.elements.network.client.wifi.password.value.length >= 8;
const valid = (this.elements.network.client.wifi.password.value.length == 0 || this.elements.network.client.wifi.password.value.length >= 8);

this.elements.network.client.wifi.connect.disabled = !valid;
},
Expand Down Expand Up @@ -1162,7 +1162,7 @@ const SettingsScreen = {
const components = new Map();

// First, get the list of installed add-ons. Do this separately so that the
// add-ons can be displayed when no internet connection is present.
// add-ons can be displayed when no internet ion is present.
this.fetchInstalledAddonList(true)
.then(() => {
const addonList = document.getElementById('installed-addons-list');
Expand Down
2 changes: 1 addition & 1 deletion tools/make-self-signed-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ SSL_DIR="${WEBTHINGS_HOME}/ssl"
[ ! -d "${SSL_DIR}" ] && mkdir -p "${SSL_DIR}"
openssl genrsa -out "${SSL_DIR}/privatekey.pem" 2048
openssl req -new -sha256 -key "${SSL_DIR}/privatekey.pem" -out "${SSL_DIR}/csr.pem" -subj '/CN=www.sgnihtbew.com/O=WebThings Gateway/C=US'
openssl x509 -req -in "${SSL_DIR}/csr.pem" -signkey "${SSL_DIR}/privatekey.pem" -out "${SSL_DIR}/certificate.pem"
openssl x509 -req -days 3650 -in "${SSL_DIR}/csr.pem" -signkey "${SSL_DIR}/privatekey.pem" -out "${SSL_DIR}/certificate.pem"
Loading