Changeset 4012


Ignore:
Timestamp:
04/13/11 15:51:00 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1739 - Login com certificado em atributo customizável

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/phpgwapi/templates/default/login_default.php

    r3999 r4012  
    5757                } 
    5858        } 
    59 function troca_espaco_por_mais($pem_data) 
     59        function troca_espaco_por_mais($pem_data) 
    6060        { 
    6161            $begin = "CERTIFICATE-----"; 
     
    114114                unset($sslattributes); 
    115115        } 
    116  
     116        if(isset($_POST['certificado']) && $_POST['certificado']) 
     117        { 
     118            //$xcert = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 
     119            $_SESSION['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado'])); 
     120        } 
    117121        if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 
    118122        { 
     
    207211                                list($forward,$extra_vars) = explode('?',$forward,2); 
    208212                        } 
    209                         if(isset($_POST['certificado']) && $_POST['certificado']) 
    210                         { 
    211                             //$xcert = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 
    212                             $GLOBALS['phpgw_info']['user']['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado'])); 
    213                         } 
     213 
    214214                if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) 
    215215                        { 
Note: See TracChangeset for help on using the changeset viewer.