Fixed 2FA minified login page

Ylian Saint-Hilaire committed May 1, 2020 at 00:08 UTC b3e59128031c49f11e6d5274e0da34eb2f35679b
1 file changed +2 -2
views/login.handlebars
+2 -2
@@ -299,8 +299,8 @@
299 var webPageFullScreen = true;
300 var nightMode = (getstore('_nightMode', '0') == '1');
301 var publicKeyCredentialRequestOptions = null;
302 - var otpemail = ('{{{otpemail}}}' === 'true');
303 - var otpsms = ('{{{otpsms}}}' === 'true');
302 + var otpemail = (decodeURIComponent('{{{otpemail}}}') === 'true');
303 + var otpsms = (decodeURIComponent('{{{otpsms}}}') === 'true');
304 var twoFactorCookieDays = parseInt('{{{twoFactorCookieDays}}}');
305
306 // Display the right server message