PluginProbe ʕ •ᴥ•ʔ
Limit Login Attempts Security – Login Security, 2FA, Firewall, Brute Force Prevention / 3.2.4
Limit Login Attempts Security – Login Security, 2FA, Firewall, Brute Force Prevention v3.2.4
3.3.2 3.3.1 3.3.0 3.2.4 3.2.3 3.2.2 3.2.1 3.2.0 trunk 2.0.0 2.1.0 2.10.0 2.10.1 2.11.0 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.14.0 2.15.0 2.15.1 2.15.2 2.16.0 2.17.0 2.17.1 2.17.2 2.17.3 2.17.4 2.18.0 2.19.0 2.19.1 2.19.2 2.2.0 2.20.0 2.20.1 2.20.2 2.20.3 2.20.4 2.20.5 2.20.6 2.21.0 2.21.1 2.22.0 2.22.1 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.25.0 2.25.1 2.25.10 2.25.11 2.25.12 2.25.13 2.25.14 2.25.15 2.25.16 2.25.17 2.25.18 2.25.19 2.25.2 2.25.20 2.25.21 2.25.22 2.25.23 2.25.24 2.25.25 2.25.26 2.25.27 2.25.28 2.25.29 2.25.3 2.25.4 2.25.5 2.25.6 2.25.7 2.25.8 2.25.9 2.26.0 2.26.1 2.26.10 2.26.11 2.26.12 2.26.13 2.26.14 2.26.15 2.26.16 2.26.17 2.26.18 2.26.19 2.26.2 2.26.20 2.26.21 2.26.22 2.26.23 2.26.24 2.26.25 2.26.26 2.26.27 2.26.28 2.26.3 2.26.4 2.26.5 2.26.6 2.26.7 2.26.8 2.26.9 2.3.0 2.4.0 2.5.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.8.0 2.8.1 2.9.0 3.0.0 3.0.1 3.0.2 3.1.0
limit-login-attempts-reloaded / assets / js / mfa-disabled-message.js
limit-login-attempts-reloaded / assets / js Last commit date
chart.umd.js 1 month ago jquery-confirm.min.js 1 month ago jspdf.umd.min.js 1 month ago limit-login-attempts.js 1 month ago mfa-disabled-message.js 1 month ago
mfa-disabled-message.js
46 lines
1 /**
2 * Display MFA disabled message on login page
3 * Uses the same notification mechanism as other LLAR messages
4 */
5 (function($) {
6 'use strict';
7
8 // Use the same notification function as LLAR uses for other messages
9 // Check if notification_login_page is already defined globally (from LLAR's login_page_render_js)
10 if (typeof window.notification_login_page === 'undefined') {
11 window.notification_login_page = function(message) {
12 if (!message.length) {
13 return false;
14 }
15 const css = '.llar_notification_login_page { position: fixed; top: 50%; left: 50%; font-size: 120%; line-height: 1.5; width: 365px; z-index: 999999; background: #fffbe0; padding: 20px; color: rgb(121, 121, 121); text-align: center; border-radius: 10px; transform: translate(-50%, -50%); box-shadow: 10px 10px 14px 0 #72757B99;} .llar_notification_login_page h4 { color: rgb(255, 255, 255); margin-bottom: 1.5rem; } .llar_notification_login_page .close-button {position: absolute; top: 0; right: 5px; cursor: pointer; line-height: 1;}';
16 const style = document.createElement('style');
17 style.appendChild(document.createTextNode(css));
18 document.head.appendChild(style);
19
20 $('body').prepend('<div class="llar_notification_login_page"><div class="close-button">&times;</div>' + message + '</div>');
21
22 setTimeout(function() {
23 $('.llar_notification_login_page').hide();
24 }, 10000);
25
26 $('.llar_notification_login_page').on('click', '.close-button', function() {
27 $('.llar_notification_login_page').hide();
28 });
29
30 $('body').on('click', function(event) {
31 if (!$(event.target).closest('.llar_notification_login_page').length) {
32 $('.llar_notification_login_page').hide();
33 }
34 });
35 };
36 }
37
38 // Show message when DOM is ready
39 $(document).ready(function() {
40 if (typeof llarMfaDisabled !== 'undefined' && llarMfaDisabled.showMessage && typeof window.notification_login_page === 'function') {
41 window.notification_login_page(llarMfaDisabled.message);
42 }
43 });
44
45 })(jQuery);
46