Browse Source

small bug fix on login lockout

CauseFX 6 năm trước cách đây
mục cha
commit
57cc4ead5b
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      api/functions/api-functions.php
  2. 1 0
      js/functions.js

+ 1 - 1
api/functions/api-functions.php

@@ -79,7 +79,7 @@ function login($array)
 	$oAuth = (isset($oAuth)) ? $oAuth : false;
 	$output = (isset($output)) ? $output : false;
 	$loginAttempts = (isset($loginAttempts)) ? $loginAttempts : false;
-	if($loginAttempts > $GLOBALS['loginAttempts']){
+	if($loginAttempts > $GLOBALS['loginAttempts'] || isset($_COOKIE['lockout'])){
 		coookieSeconds('set', 'lockout', $GLOBALS['loginLockout'], $GLOBALS['loginLockout']);
 		return 'lockout';
 	}

+ 1 - 0
js/functions.js

@@ -7004,6 +7004,7 @@ function launch(){
                 }
                 loadCustomJava(json.appearance);
                 if(getCookie('lockout')){
+                    $('.show-login').click();
                     setTimeout(function(){
                         $('div.login-box').block({
                             message: '<h5><i class="fa fa-close"></i> Locked Out!</h4>',