From 2d9e1ae5c6f9069f370f58dd896336df2c7c8f22 Mon Sep 17 00:00:00 2001 From: Marcin Wilk Date: Tue, 5 Jul 2022 13:28:18 +0200 Subject: [PATCH 1/2] Polish translation update --- translate/translate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/translate/translate.json b/translate/translate.json index c4194355..390fb24d 100644 --- a/translate/translate.json +++ b/translate/translate.json @@ -28180,6 +28180,7 @@ { "en": "Gateway: {0}", "nl": "Gateway: {0}", + "pl": "Brama: {0}", "xloc": [ "default-mobile.handlebars->11->556", "default.handlebars->45->1453" @@ -29326,6 +29327,7 @@ "de": "HTTP Verbindung", "en": "HTTP Connection", "nl": "HTTP verbinding", + "pl": "Połączenie HTTP", "xloc": [ "default.handlebars->45->750" ] @@ -29333,6 +29335,7 @@ { "en": "HTTP remote connection port:", "nl": "HTTP poort voor externe verbinding:", + "pl": "HTTP zdalny port połączenia:", "xloc": [ "default.handlebars->45->749" ] @@ -29366,6 +29369,7 @@ "de": "HTTPS Verbindung", "en": "HTTPS Connection", "nl": "HTTPS verbinding", + "pl": "Połączenie HTTPS", "xloc": [ "default.handlebars->45->752" ] @@ -29373,6 +29377,7 @@ { "en": "HTTPS remote connection port:", "nl": "HTTPS poort voor externe verbinding:", + "pl": "HTTPS zdalny port połączenia:", "xloc": [ "default.handlebars->45->751" ] @@ -39186,6 +39191,7 @@ { "en": "Mask: {0}", "nl": "Mask: {0}", + "pl": "Maska: {0}", "xloc": [ "default-mobile.handlebars->11->555", "default.handlebars->45->1452" From d16523af7b5be616732be0262c96bdf4c8be88ef Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Tue, 5 Jul 2022 18:42:00 +0100 Subject: [PATCH 2/2] fix backup code visibility --- webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver.js b/webserver.js index a80e1c89..a6812019 100644 --- a/webserver.js +++ b/webserver.js @@ -2972,8 +2972,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if (domain.devicesearchbarserverandclientname) { features2 += 0x00008000; } // Search bar will find both server name and client name if (domain.ipkvm) { features2 += 0x00010000; } // Indicates support for IP KVM device groups if ((domain.passwordrequirements) && (domain.passwordrequirements.otp2factor == false)) { features2 += 0x00020000; } // Indicates support for OTP 2FA is disabled - if ((typeof domain.passwordrequirements != 'object') || (domain.passwordrequirements.backupcode2factor === false)) { features2 += 0x00040000; } // Indicates 2FA backup codes are disabled - if ((typeof domain.passwordrequirements != 'object') || (domain.passwordrequirements.single2factorwarning === false)) { features2 += 0x00080000; } // Indicates no warning if a single 2FA is in use + if ((typeof domain.passwordrequirements == 'object') && (domain.passwordrequirements.backupcode2factor === false)) { features2 += 0x00040000; } // Indicates 2FA backup codes are disabled + if ((typeof domain.passwordrequirements == 'object') && (domain.passwordrequirements.single2factorwarning === false)) { features2 += 0x00080000; } // Indicates no warning if a single 2FA is in use if (domain.nightmode === 1) { features2 += 0x00100000; } // Always night mode if (domain.nightmode === 2) { features2 += 0x00200000; } // Always day mode if (domain.allowsavingdevicecredentials == false) { features2 += 0x00400000; } // Do not allow device credentials to be saved on the server