Changeset 2613


Ignore:
Timestamp:
04/22/10 11:10:41 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #834 - Corrigida a funcionalidade do captcha e seu posicionamento.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/login_default.php

    r1933 r2613  
    104104                unset($sslattributes); 
    105105        } 
    106  
     106        session_start(); 
    107107        if(isset($passwd_type) || $_POST['submitit_x'] || $_POST['submitit_y'] || $submit) 
    108108        { 
     
    406406                        { 
    407407                                $aux_captcha = '<div class="login_label" > 
    408                <img src="./security/captcha.php" title="'.lang('Security code').'" alt="'.lang('Security code').'" style="width:60;"> 
     408               <input type="hidden" name="' . session_name() .'" value="' . session_id() . '" > 
     409               <img src="./security/captcha.php?xsid='.session_id().'" title="'.lang('Security code').'" alt="'.lang('Security code').'" style="width:60;"> 
    409410<br /> 
    410411                <input class="input" type="text" maxlength="50" size="20" name="codigo" id="codigo" value="" > 
  • trunk/security/captcha.php

    r1574 r2613  
    106106  
    107107 // ************  Fim da Classe  ************************* 
    108   
    109   
     108   
    110109  //Cria o CAPTCHA( gera o string e a imagem ... 
    111110  $GLOBALS['captcha'] = new captcha; 
    112111  // Guarda o string do captcha na session... 
     112  session_id($_REQUEST['xsid']); 
     113  session_start(); 
    113114  $_SESSION['CAPTCHAString'] = $GLOBALS['captcha'] ->GetCaptchaString(); 
    114115  // Vai exibir a imagem do captcha... 
Note: See TracChangeset for help on using the changeset viewer.