From b8a0512f839dabd0ae51abf3ec97f72ffa0acc79 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 25 Mar 2019 14:43:58 -0700 Subject: [PATCH] More FIDO2 fixes. --- package.json | 2 +- views/login-mobile.handlebars | 2 +- views/login.handlebars | 4 +-- webserver.js | 52 ++++++++++++++++++++--------------- 4 files changed, 34 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 6f0afca5..b9abeb80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.0-y", + "version": "0.3.0-z", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/login-mobile.handlebars b/views/login-mobile.handlebars index a1975a42..7502965e 100644 --- a/views/login-mobile.handlebars +++ b/views/login-mobile.handlebars @@ -260,7 +260,7 @@ var passRequirements = "{{{passRequirements}}}"; if (passRequirements != "") { passRequirements = JSON.parse(decodeURIComponent(passRequirements)); } else { passRequirements = {}; } var passRequirementsEx = ((passRequirements.min != null) || (passRequirements.max != null) || (passRequirements.upper != null) || (passRequirements.lower != null) || (passRequirements.numeric != null) || (passRequirements.nonalpha != null)); - var hardwareKeyChallenge = '{{{hkey}}}'; + var hardwareKeyChallenge = decodeURIComponent('{{{hkey}}}'); var currentpanel = 0; function startup() { diff --git a/views/login.handlebars b/views/login.handlebars index 126de5d2..814c928b 100644 --- a/views/login.handlebars +++ b/views/login.handlebars @@ -110,7 +110,7 @@ -
+