Check if 2FA is set up
-
hi,
I have a custom theme here that uses the login_redirect filter. Here I decide depending on the user role where the user is redirected.Now I have set 2FA to required for a specific user role in my test environment. But this user has not set up 2FA.
When this user logs in now, he is redirected directly to his page.
So,
if( user == userole ){ $URL = redirect To Normal Page; return URL; }
At this point, how can I query whether the user who is logging in already has 2FA set up or not? Whether it is necessary for him etc?
So that I can do this here?
if( user == userole ){ if(UserhatSetup2FA == true ){ $URL = redirect To Normal Page; }else{ $URL = redirect To WordPress Profile WordFence 2FA View; } return $URL; }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Check if 2FA is set up’ is closed to new replies.