get_user_detail( 'mo2f_configured_2FA_method', $user->ID ); if ( MOLMS_IS_ONPREM ) { if ( $mo2f_configured_2FA_method == 'Google Authenticator' ) { $currentTimeSlice = floor( time() / 30 ); $code_array = array(); include_once $molms_dirName . DIRECTORY_SEPARATOR . 'handler' . DIRECTORY_SEPARATOR . 'twofa' . DIRECTORY_SEPARATOR . 'gaonprem.php'; $gauth_obj = new molms_Google_auth_onpremise(); $secret = $gauth_obj->mo_GAuth_get_secret( $user->ID ); for ( $i = - 3; $i <= 3; ++ $i ) { $calculatedCode = $gauth_obj->getCode( $secret, $currentTimeSlice + $i ); array_push( $code_array, $calculatedCode ); } } } wp_print_scripts( 'jquery-core' ); ?>