From 5314a85acaceeb76ac7ea5828c7428a40f603c27 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 1 May 2020 00:08:53 -0700 Subject: [PATCH] Fixed 2FA minified login page --- views/login.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/login.handlebars b/views/login.handlebars index 22b12ed1..53e6c267 100644 --- a/views/login.handlebars +++ b/views/login.handlebars @@ -299,8 +299,8 @@ var webPageFullScreen = true; var nightMode = (getstore('_nightMode', '0') == '1'); var publicKeyCredentialRequestOptions = null; - var otpemail = ('{{{otpemail}}}' === 'true'); - var otpsms = ('{{{otpsms}}}' === 'true'); + var otpemail = (decodeURIComponent('{{{otpemail}}}') === 'true'); + var otpsms = (decodeURIComponent('{{{otpsms}}}') === 'true'); var twoFactorCookieDays = parseInt('{{{twoFactorCookieDays}}}'); // Display the right server message