sso fields with user and clubstation add

This commit is contained in:
HadleySo
2026-03-18 18:19:34 -05:00
parent 3018b8981a
commit ea517239ec

View File

@@ -177,6 +177,18 @@ class User extends CI_Controller {
$data['clubstation'] = ($this->input->get('club') ?? '') == '1' ? true : false; $data['clubstation'] = ($this->input->get('club') ?? '') == '1' ? true : false;
$data['external_account'] = NULL;
$data['auth_header_enable'] = $this->config->item('auth_header_enable') ?? false;
if ($data['auth_header_enable']) {
// expecting sso.php in the config folder
$this->config->load('sso', true, true);
}
$data['auth_header_allow_direct_login'] = $this->config->item('auth_header_allow_direct_login', 'sso') ?? true;
$data['auth_header_hide_password_field'] = $this->config->item('auth_header_hide_password_field', 'sso') ?? false;
$data['auth_header_locked_data_badge'] = $this->config->item('auth_header_locked_data_badge', 'sso') ?: 'IdP';
$data['auth_header_locked_data_tip'] = $this->config->item('auth_header_locked_data_tip', 'sso') ?: __("Can't be changed. Manage this through your Identity Provider.");
$data['sso_claim_config'] = $this->config->item('auth_headers_claim_config', 'sso') ?: [];
// Get themes list // Get themes list
$data['themes'] = $this->user_model->getThemes(); $data['themes'] = $this->user_model->getThemes();