コード例 #1
0
ファイル: protect.php プロジェクト: dtekcth/datateknologer.se
 /**
  * Checks for loginability BEFORE authentication so that bots don't get to go around the log in form.
  *
  * If we are using our math fallback, authenticate via math-fallback.php
  *
  * @param string $user
  * @param string $username
  * @param string $password
  *
  * @return string $user
  */
 function check_preauth($user = '******', $username = '******', $password = '******')
 {
     $this->check_login_ability(true);
     $use_math = $this->get_transient('brute_use_math');
     if (1 == $use_math && isset($_POST['log'])) {
         include_once dirname(__FILE__) . '/protect/math-fallback.php';
         Jetpack_Protect_Math_Authenticate::math_authenticate();
     }
     return $user;
 }
コード例 #2
0
ファイル: protect.php プロジェクト: umairakhtar123/hova
 /**
  * Checks for loginability BEFORE authentication so that bots don't get to go around the log in form.
  *
  * If we are using our math fallback, authenticate via math-fallback.php
  *
  * @param string $user
  * @param string $username
  * @param string $password
  *
  * @return string $user
  */
 function check_preauth($user = '******', $username = '******', $password = '******')
 {
     $this->check_login_ability(true);
     $use_math = $this->get_transient('brute_use_math');
     if (1 == $use_math && isset($_POST['log'])) {
         Jetpack_Protect_Math_Authenticate::math_authenticate();
     }
     return $user;
 }