szgoogle_authenticator_verify_code

The SZ - Google szgoogle authenticator verify code function.

Description

szgoogle_authenticator_verify_code( $user, $code, (int) $discrepancy = 1 ); 

Parameters (3)

0. $user
The user.
1. $code
The code.
2. $discrepancy — Optional. (int) => 1
The discrepancy.

Usage

  1. if ( !function_exists( 'szgoogle_authenticator_verify_code' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'sz-google/functions/SZGoogleFunctionsAuthenticator.php'; 
  3.  
  4. // The user. 
  5. $user = null; 
  6.  
  7. // The code. 
  8. $code = null; 
  9.  
  10. // The discrepancy. 
  11. $discrepancy = 1; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = szgoogle_authenticator_verify_code($user, $code, $discrepancy); 
  15.  

Defined (1)

The function is defined in the following location(s).

/functions/SZGoogleFunctionsAuthenticator.php