Browse Source

fix 2fa if password mgr

causefx 7 years ago
parent
commit
62cc4d0771
2 changed files with 6 additions and 1 deletions
  1. 6 1
      js/custom.js
  2. 0 0
      js/custom.min.js

+ 6 - 1
js/custom.js

@@ -361,7 +361,12 @@ $(document).on("click", ".login-button", function(e) {
             } else if (html.data == '2FA') {
             } else if (html.data == '2FA') {
                 $('div.login-box').unblock({});
                 $('div.login-box').unblock({});
                 $('#tfa-div').removeClass('hidden');
                 $('#tfa-div').removeClass('hidden');
-                $('#loginform [name=tfaCode]').focus()
+                $('#loginform [name=tfaCode]').focus();
+            } else if (html.data == '2FA-incorrect') {
+                $('div.login-box').unblock({});
+                $('#tfa-div').removeClass('hidden');
+                $('#loginform [name=tfaCode]').focus();
+                message('Login Error', html.data, activeInfo.settings.notifications.position, '#FFF', 'warning', '10000');
             } else {
             } else {
                 $('div.login-box').unblock({});
                 $('div.login-box').unblock({});
                 message('Login Error', html.data, activeInfo.settings.notifications.position, '#FFF', 'warning', '10000');
                 message('Login Error', html.data, activeInfo.settings.notifications.position, '#FFF', 'warning', '10000');

File diff suppressed because it is too large
+ 0 - 0
js/custom.min.js


Some files were not shown because too many files changed in this diff