Private GIT

Skip to content
Snippets Groups Projects
Commit 5abd3410 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: Fix js console error

  login.js?v=1.4_r033_v18:98 Uncaught TypeError: Cannot read property 'length' of undefined
    at HTMLDocument.<anonymous> (login.js?v=1.4_r033_v18:98)
parent 6c32ff20
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ define("VERSION", "1.4"); //decimal release version e.g 1.32
/* set latest version */
define("VERSION_VISIBLE", "1.4"); //visible version in footer e.g 1.3.2
/* set latest revision */
define("REVISION", "033"); //increment on static content changes (js/css) or point releases to avoid caching issues
define("REVISION", "034"); //increment on static content changes (js/css) or point releases to avoid caching issues
/* set last possible upgrade */
define("LAST_POSSIBLE", "1.19"); //minimum required version to be able to upgrade
......
......@@ -95,13 +95,15 @@ $('form#login_2fs').submit(function() {
/* Submit on keyup */
$(document).keyup(function(e) {
var codevallength = $('form#login_2fs input#2fa_code').val().length
if(codevallength == 6) {
var codeval = $('form#login_2fs input#2fa_code').val();
if (codeval != null) {
if(codeval.length == 6) {
submit_2fs (true);
}
else if (codevallength > 0) {
else if (codeval.length > 0) {
$('div#twofaCheck').fadeOut('fast');
}
}
});
/* submit IP request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment