Which hook should be used before adding two-factor authentication?
-
Hello, I am using another two-factor authentication plugin. I would like to ensure that users who have Google Authenticator enabled must complete the verification after logging in via Super Socializer. Could you please let me know which hook I should use to perform the check and verification after login? I have tried adding
the_champ_login_userin my theme’sfunctions.php, but it does not detect the login behavior, so I would like to ask for your advice.add_action('the_champ_login_user', 'two_factor_scripts_for_social_login', 10, 4);
function two_factor_scripts_for_social_login($userId, $profileData, $socialId, $update) {
// 打印调试信息
echo "<script>console.log('Social login successful');</script>";
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Which hook should be used before adding two-factor authentication?’ is closed to new replies.