I am working on developing my own user authentication method which uses Microsoft Graph API. This method extends the existing SugarAuthenticate and SugarAuthenicateUser. I was able to login the user that way, but then when I am testing to see if the users is actually log in, I notice these subpanel filter which looks like this.
I am 50% sure I forgot to load something (what did I forget to load?), and 50% wishing that these are new features, which is kind of nice.
This is the loadUserOnLogin method extended from SugarAuthenticateUser
public function loadUserOnLogin($name, $password, $fallback = false, $params = array()) {
global $mod_strings;
global $login_error;
$user_id = $this->authenticateUser($name, $password);
$this->loadUserOnSession($user_id);
return true;
}
I also called postLoginAuthenticate from SugarAuthenicate.
Those tabs in your subpanels are a complete novelty to me. Is it possible that your system is running custom code, or add-ons, that you don’t know about?
Thank you for the response, it cannot be reproduced in a normal circumstance. What happened was we have decided to create a new workflow and use Microsoft Graph to log-in the user (with that, hopefully, we can also sync email and calendar using their API!). I injected code to authenticate the user, so it bypassed all the built-in authentication process, including the user wizard, and then the subpanel group appears!
Now, I have directed the user to use the user wizard when an account is created for the first time, the subpanels also disappear! I didn’t do anything to the Javascript, so I am not sure what happened.
But it seems the scripts are there, just not used. I hope that make sense.
I may be talking nonsense, but if you refer to the tabs, they are set up in profile in Layout Options (checking the box “Subpanel Tabs:”). They will show subpanel guides related to the module menus
I think my problem has been resolved. By running the user setup wizard, the user’s preference is set correctly when a new account is created. Thank you all for the help and me making this confusing.