<commit_before><?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Sso_Manage extends Controller_Sso_Master {
    public function before() {
        parent::before();
        
        if($this->session()->get("sso_token_lock", false) && ($this->_action == "display")){
            $this->redirect("/sso/auth/checks");
            exit();
        }
    }
    
    /**
     * Display the user's details if they're logged in.
     * 
     * If a user is not logged in, send them to the SSO system to login.
     */
    public function action_display(){
        // If they're not logged in, we'll treat this as an SSO login.
        if(!$this->_current_account->loaded()){
            require_once "/var/www/sharedResources/SSO.class.php";
            $SSO = new SSO("CORE", URL::site("/sso/manage/display", "http"), false, "http://dev.vatsim-uk.co.uk/ALawrence/core.vatsim-uk.co.uk/sso/token/auth");
            $details = $SSO->member;
        }
        
        // Set the account details
        $this->_data["_account"] = $this->_current_account;
    }
    
    public function action_email_confirm(){<commit_msg>Resolved an issue with new releases trying to redirect towards the dev site for authentication.<commit_after><?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Sso_Manage extends Controller_Sso_Master {
    public function before() {
        parent::before();
        
        if($this->session()->get("sso_token_lock", false) && ($this->_action == "display")){
            $this->redirect("/sso/auth/checks");
            exit();
        }
    }
    
    /**
     * Display the user's details if they're logged in.
     * 
     * If a user is not logged in, send them to the SSO system to login.
     */
    public function action_display(){
        // If they're not logged in, we'll treat this as an SSO login.
        if(!$this->_current_account->loaded()){
            require_once "/var/www/sharedResources/SSO.class.php";
            $SSO = new SSO("CORE", URL::site("/sso/manage/display", "http"), false, URL::site("/sso/token/auth"));
            $details = $SSO->member;
        }
        
        // Set the account details
        $this->_data["_account"] = $this->_current_account;
    }
    
    public function action_email_confirm(){
{'fraction_non_alphanumeric': 0.1456896551724138, 'fraction_numerical': 0.0, 'mean_word_length': 2.373546511627907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4033297', 'n_tokens_mistral': 685, 'n_tokens_neox': 674, 'n_words': 173}