Ignore:
Timestamp:
07/28/11 08:33:41 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2169 - Disponibilizar certificado na sessão do usuário

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/phpgwapi/inc/class.sessions.inc.php

    r3486 r4867  
    5353                */ 
    5454                var $passwd; 
    55  
     55/** 
     56                * @var string current user certificate, if present 
     57                */ 
     58                var $certificate; 
    5659                /** 
    5760                * @var int current user db/ldap account id 
     
    463466                                $this->passwd_type = $passwd_type; 
    464467                        } 
    465  
     468                        if($_SESSION['login_certificate']) 
     469                        { 
     470                               $this->certificate = $_SESSION['login_certificate']; 
     471                        } 
     472                        else 
     473                        { 
     474                               $this->certificate = false; 
     475                        } 
    466476                        $this->clean_sessions(); 
    467477                        //sessions_::split_login_domain($login,$this->account_lid,$this->account_domain); 
     
    561571                                return False; 
    562572                        } 
    563  
    564573                        $GLOBALS['phpgw_info']['user']  = $this->user; 
    565574                        $GLOBALS['phpgw_info']['hooks'] = $this->hooks; 
    566575 
    567576                        $this->appsession('password','phpgwapi',base64_encode($this->passwd)); 
     577                        if($this->certificate) $this->appsession('certificate','phpgwapi',$this->certificate); 
    568578                        if ($GLOBALS['phpgw']->acl->check('anonymous',1,'phpgwapi')) 
    569579                        { 
Note: See TracChangeset for help on using the changeset viewer.