Switch user once logged in
-
Hi,
I am developing intranet site on wordpress. The company uses a few domains and some users have 2-3 login on different domains.
I set up active directory integration which works well, but of’course I have a few users for one person. I am going to set up one main account for each person that will be used for intranet.
So, if someone log in using one of their domain credentials it will automatically switch to the main account.The username for domain is: firstname.lastname@domainname
I want all people with domain name redirect to their main account which will be: firstname.lastnameI believe I need to modify
wp_signon()function that will change current user usingwp_set_current_user()? If someone login as [email protected] it will change the user to user will.smith using his firstname lastname variables?I have checked everywhere and couldn’t find similar issue. Appreciate if someone can help with this
The topic ‘Switch user once logged in’ is closed to new replies.