I use SP on a WP install with SSO implemented using open source CAS JASIG solution and its PHP CAS client.
When user logs into WP/SP, login credentials are checked by the SSO solution which is configured to use a custom database.
This database also holds email addresses. The SSO solution is only used to check login credentials. It does not allow me to get the email address. But as I manage the database, I can get the user email address with a secured web service I can call in PHP.
Email adresses are used by SP to notify users from answers to their posts, which is very useful.
I would like to change the code is SP which is used to get user email adress. I would like to get it from my database instead of WP database, so that email address will always be right as it is maintained in this database.
Just tell me which file(s) I need to change. Thanks in advance.