developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1051: lib.3.diff

File lib.3.diff, 2.4 KB (added by sylvain261, 11 years ago)
  • lib/jelix-modules/jauth/classes/jauth.listener.php

    diff -r 50bb178734ee lib/jelix-modules/jauth/classes/jauth.listener.php
    a b  
    33* @package     jelix-modules
    44* @subpackage  jauth
    55* @author      Jouanneau Laurent
    6 * @contributor
     6* @contributor 
    77* @copyright   2006 Jouanneau laurent
    88* @link        http://www.jelix.org
    99* @licence     GNU General Public Licence see LICENCE file or http://www.gnu.org/licenses/gpl.html
     
    2626        $event->Add(array('canlogin'=>$ok));
    2727
    2828   }
     29
    2930}
    3031?>
     32 No newline at end of file
  • lib/jelix/auth/jAuth.class.php

    diff -r 50bb178734ee lib/jelix/auth/jAuth.class.php
    a b  
    33* @package    jelix
    44* @subpackage auth
    55* @author     Laurent Jouanneau
    6 * @contributor Frédéric Guillot, Antoine Detante, Julien Issler, Dominique Papin
     6* @contributor Frédéric Guillot, Antoine Detante, Julien Issler, Dominique Papin, Tahina Ramaroson, Sylvain de Vathaire
    77* @copyright  2001-2005 CopixTeam, 2005-2008 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante
    8 * @copyright  2007-2008 Julien Issler, 2008 Dominique Papin
     8* @copyright  2007-2008 Julien Issler, 2008 Dominique Papin, 2010 NEOV
    99*
    1010* This classes were get originally from an experimental branch of the Copix project (Copix 2.3dev, http://www.copix.org)
    1111* Few lines of code are still copyrighted 2001-2005 CopixTeam (LGPL licence).
     
    249249        $dr = self::_getDriver();
    250250        $config = self::_getConfig();
    251251
     252        $eventresp = jEvent::notify ('AuthBeforeLogin', array('login'=>$login));
     253        foreach($eventresp->getResponse() as $rep){
     254            if(isset($rep['processlogin']) && $rep['processlogin'] === false)
     255                return false;
     256        }
     257
    252258        if($user = $dr->verifyPassword($login, $password)){
    253259
    254260            $eventresp = jEvent::notify ('AuthCanLogin', array('login'=>$login, 'user'=>$user));
     
    278284
    279285            jEvent::notify ('AuthLogin', array('login'=>$login, 'persistence'=>$persistence));
    280286            return true;
    281         }else
     287        }else{
     288            jEvent::notify ('AuthErrorLogin', array('login'=>$login));
    282289            return false;
     290        }
    283291    }
    284292
    285293    /**